You have three areas of memory, eden, survivor and space occupied.
What I suspect is that either the enlarged or expanded spaces do not grow as the maximum size increases.
The reason these two regions matter is because when the filled space fills the Full GC, it fires (I suspect that this size is growing) When the eden space is full and there is no space for copying all the remaining objects in the space left, Full GC also starts.
If this is the cause of your problem, you are creating a very large number of medium-term objects, which can be a performance problem, unless you can reduce the number of objects created. An alternative is a larger specification that increases eden size.
Try -mx12g -XX:NewSize=10g - verbosegc
The last option will give you the dimensions of the individual spaces when they are cleaned.
source share