Followed the below process but I'm unable to analyze the dump generated.
- I tried to get heap dump from the Java process running on Linux box using "jmap -F -dump:format=b,file=/tmp/test.hprof "
- Ctrl+C after a span of 60 seconds
- Heap dump generated from above step is launched using Eclipse MAT (Memory Analyzer Tool), but I see the following error.
An internal error occurred during: "Parsing heap dump from '/users/sobhan/Test.hprof'". java.lang.NullPointerException
PS: I tried other analyzer tools like VisualVM, IBM Heap Analyzer and the result is same. I think the heap dump was corrupted (Does using Ctrl+C is faulty here ?). If so, please suggest the correct way lo gracefully exit 'jmap'
Thanks in advance.