I generated hprof using jmap.
sudo ~/jdk/bin/jmap -F -dump:file=app.hprof 5003
Now, I am getting OOM / ‘Java Heap Space’ error while parsing *.hprof in eclipse. I think I need to run it as stand-alone.
How do I run it? any references?
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
I assume, you’ve downloaded Eclipse MAT in the form of Standalone Eclipse RCP Application. If not – do so now, and extract the archive to a folder that suits you.
You’re getting the OOME, because MAT has too few memory available (the heap-dump you’re parsing is too big).
To make the heap bigger, edit your
MemoryAnalyzer.inifile (it should be in your MAT directory), and add the following lines to it:The
2048Mmeans 2 gigabytes of heap space will be available to the JVM. Perhaps 1 gigabyte will be enough for you.Note!
If you are using MAT as an Eclipse plugin, you can probably do the same trick by editing
eclipse.iniin your Eclipse directory.