[Solved] Memory consumption under 7.0.0
Posted: Sat Mar 31, 2018 6:11 am
Hey all!
I just upgraded from 6.8.0 to 7.0.0 and the server kept throwing these:
all the time. I then gradually increased heap memory to 6GB and now it seems to run, but constantly consumes 6GB of memory. I tried activating the garbage collection and now my command line looks like this:
The database folder is also 6GB in size, so I was wondering if that's related to each other? The 6.8.0 version only consumed roughly 1GB of memory, but not 6GB. Is there anything I can do to lower the consumption? I only have 8GB in that machine 
I just upgraded from 6.8.0 to 7.0.0 and the server kept throwing these:
Code: Select all
INFO 17:07:25.649 [Thread-7] Exception in thread "Thread-7" java.lang.OutOfMemoryError: Java heap space
Exception: java.lang.OutOfMemoryError thrown from the UncaughtExceptionHandler in thread "MVStore background writer nio:/opt/ums/.config/UMS/database/medias.mv.db
INFO 17:07:38.411 [JmDNS(36720b1580dd.local.).Timer] Exception in thread "JmDNS(36720b1580dd.local.).Timer" java.lang.OutOfMemoryError: Java heap space
ERROR 17:07:38.411 [Library Scanner] Error adding child: "08 - Musik + Ansage.mp3"
java.lang.OutOfMemoryError: Java heap space
Code: Select all
java -XX:PermSize=512m -XX:+UseG1GC -XX:MaxGCPauseMillis=200 -XX:ParallelGCThreads=20 -XX:ConcGCThreads=5 \
-XX:InitiatingHeapOccupancyPercent=70 -Xmx6096m -Xss2048k -Dfile.encoding=UTF-8 -Djava.net.preferIPv4Stack=true -Djna.nosys=true -classpath ums.jar net.pms.PMS
