I am currently running an application that requires a maximum heap size of 16 GB.
I am currently using the following flags to handle garbage collection.
-XX\:+UseParNewGC, -XX\:+UseConcMarkSweepGC, -XX:CMSInitiatingOccupancyFraction=50, -XX\:+DisableExplicitGC, -XX\:+PrintGCDateStamps, -XX\:+PrintGCDetails, -Xloggc\:/home/user/logs/gc.log
However, I noticed that during some garbage collectors, the application blocks for a few seconds, and then continues - this is completely unacceptable, since it is a game server.
From my garbage collection logs can be found here .
Any advice on what I should change to reduce these long pauses would be greatly appreciated.
source share