Using VisualVM and checking the Tomcat 8.5 directory catalina.out, I see that almost every time (7 out of 11 times or so) when the full GC shows that the logs show OutOfMemory (from the same minute).
With Tomcat options that have something to do with memory management: -Xms3G -Xmx = 6G -XX: + UseG1GC -XX: + UseStringDeduplication -XX: MaxHeapFreeRatio = 100 >
At first I thought it was due to the default value -XX: MaxHeapFreeRatio , which is 70 , since I saw that max. the heap size (and, of course, the heap heap) will significantly decrease during the full GC - up to ~ 10-20%. However, adding XX: MaxHeapFreeRatio = 100 did not fix it.
Although this is a graph of memory usage with a different set of JVM parameters (it cannot be obtained by someone who has old JVM ATM parameters), it is similarly growing rapidly after using full memory , the same max. heap size and max. the heap size does not fall.

Any ideas why this might happen?
: , GC OutOfMemory , - ~ 5 . , 6 .