I had to run the jmap so that I can take the heap dump of my process. But the jvm returned below error :
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 tried using 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 ...
1. Using -F is correct approach to take the heap dump?
2. I am waiting for more than 20 minutes and not finished yet. Any ideas why it is taking so long?