Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

'heapdump.xxx.phd'. Not a HPROF heap dump (java.io.IOException) Not a HPROF heap dump

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)

like image 425
DarVar Avatar asked Jul 21 '14 15:07

DarVar


People also ask

How to generate heap dump in Java?

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.

How to generate a heapdumponoutofmemoryerror in Java?

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:

How do you analyze a dump file in Java?

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.

What is JVM heap memory dump?

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.


1 Answers

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

like image 74
Julius Avatar answered Oct 25 '22 06:10

Julius