I was assigned to find the root cause for Full GC issue (Garbage Collector) in our production environment. It occurs randomly and I believe the most probable case as a memory leak present in the current application. I hope to take a memory dump from our production environment (linux) and analyze using GUI tools such as Eclipse Memory Analyzer.
what is the best file format for a heap dump file to be analyzed? Is it hprof format? I am going to use jmap command to obtain a heap dump. Is it necessary to specify the "format=b" option while obtaining the memory dump?
Following is a sample command I am going to instruct our support team to run. (5980 is a sample pid).
If you believe in any better approach please let me know.
jmap -dump:format=b,file=hpdump.hprof 5980
Thanks