I am running a load on Tomcat 6 running on Java 6. I want to collect a bunch of Java heaps when the Tomcat server is under load. I usually use jmap -dump to collect my heaps.
However, when I try to do this when Tomcat handles a high load, I found that the heapdump assembly failed.
Is jmap the best tool for collecting heap dump from a process under load? What are the possible reasons that jmap will not be able to compile heapdump?
If jmap is not the best tool - which is better?
It is quite acceptable for me for jmap (or some other tool) to stop the world in the Java process, while a heap dump is done.
source
share