jvisualvm: Stuck on “Loading Heap Dump” screen

泪湿孤枕 提交于 2019-12-01 11:47:32

VisualVM supports heap dumps in binary HPROF format. It is easier to use VisualVM to create heap dump. If this is not possible use VisualVM, you can use jmap -dump:live,format=b,file=heap.bin <pid>. The advantage is that you don't need any special startup arguments and there is no slow down caused by hprof agent library.

In my case, I have resolved this issue by changing file permission of heapdump file. It turned out VisualVM tried to load the file but permission is denied (which is strange since VisualVM is the one created the dump file), however VisualVM does NOT give you error message. I have downloaded the eclipse memory analyzer (https://www.eclipse.org/mat/downloads.php). It gives me an error message.

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!