The Eclipse Memory Analyser docs say it can open IBM portable heap dump files (*.phd):
http://help.eclipse.org/luna/index.jsp?topic=/org.eclipse.mat.ui.help/welcome.html
However, when I try to open one I get and error:
'heapdump.xxx.phd'. Check the error log for further details.
Not a HPROF heap dump (java.io.IOException)
Not a HPROF heap dump
I've tried both menu options (File > Open Heap Dump) and (File > Open File)
Some of the other methods of generating a heap dump are: jcmd: jcmd is used to send diagnostic command requests to the JVM. It is packaged as part of the JDK. It can be found in the bin folder of a Java installation.
Let us run the program with the VM option HeapDumpOnOutOfMemoryError from the command line or our favorite IDE to generate the heap dump file: java -jar target/oomegen-0.0.1-SNAPSHOT.jar \ -XX:+HeapDumpOnOutOfMemoryError \ -XX:HeapDumpPath=<File path>hdump.hprof After running our Java program with these VM arguments, we get this output:
Once a heap dump file is generated, we use tools like JVisualVM to analyze the file. When you open a heap dump, Java VisualVM displays the Summary view by default. The Summary view displays the running environment where the heap dump was taken and other system properties.
How to Generate JVM Heap Memory Dump? Java Heap dump is a snapshot of all java objects that are present in the JVM (Java Virtual Machine) at a certain point in time. The JVM allocates memory for objects which are class instances or arrays in the heap memory.
You have to install DTJF in order to read IBM files.
http://wiki.eclipse.org/MemoryAnalyzer#System_Dumps_and_Heap_Dumps_from_IBM_Virtual_Machines
Eclipse download site is at the bottom here:
http://www.ibm.com/developerworks/java/jdk/tools/dtfj.html
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With