Does jmap force garbage collection when the live option is used?
In order to determine liveness, Java has to run full GC, so yes, it does. To put the question to sleep… here is the answer, if anyone needs to dig deeper. Feel free. part of /hotspot/agent/src/share/vm/services/attachListener.cpp taken from openjdk http://download.java.net/openjdk/jdk7/ and you must accept http://www.gnu.org/licenses/gpl-2.0.html // Implementation of “inspectheap” command // // Input arguments :- … Read more