我必须运行jmap
才能进行进程的堆转储。但jvm
返回:
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
所以我用了-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 ...
- 使用
-F
可以进行堆转储吗? - 我正在等待20分钟,尚未完成。有什么想法吗?