Jvisualvm: Stuck on Heap Download screen

I created a heap dump file with hprof using the following command:

java -agentlib:hprof -cp "..\..\jars\trove.jar;.\bin" com.mysite.MyApp

This successfully created the file "java.hprof.txt", which was about 5 MB. Then I opened jvisualvm to view this file and downloaded it. But visualvm seems to be stuck on the loading screen. The screen below was about 10 minutes.

Did I miss a step? Should I use different options on the command line with hprof? How can I read this heap dump file?

visualvm screenshot

+2
source share
2 answers

VisualVM HPROF. VisualVM . , VisualVM, jmap -dump:live,format=b,file=heap.bin <pid>. , - , hprof.

+2

, heapdump. , VisualVM , ( , VisualVM - , ), VisualVM . eclipse (https://www.eclipse.org/mat/downloads.php). .

0

Source: https://habr.com/ru/post/1536502/


All Articles