In a running system, we see lots of “Full GC (System)” which indicates someone triggers System.gc().
Is there a way to find out where in the code this happens?
I did search all the available source but found nothing suspicious so it must be somewhere, probably another app that’s running in the same container or the container itself.
You can change the Runtime class to log where gc() is being called to a file (System.gc() calls Runtime.gc())
To do this, edit a copy, compile it and add it to your
-Xbootclasspath/p:However a high number of Full GC is more likely to be due to insufficient survivor space or a full tenured space.
Can you try running