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?

Jonah source
share