I had to run jmap
in order to take heap dump of my process. but jvm
returned:
Unable to open socket file: target process not responding or HotSpot VM not loaded
The -F option can be used when the target process is not responding
So I used the -F
:
./jmap -F -dump:format=b,file=heap.bin 10330
Attaching to process ID 10331, please wait...
Debugger attached successfully.
Server compiler detected.
JVM version is 24.51-b03
Dumping heap to heap.bin ...
- Using
-F
is allright for taking heap dump? - I am waiting 20 minutes and not finished yet. Any ideas why?