Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

VisualVM - not a valid core dump

I have .hprof heap dump generated from JVM OutOfMemory (JDK 1.5 version).

When I try to add this file in VisualVM, it tells me file is not a valid core dump.

However from I'm able to run jhat for this dump file without any issue.

any ideas why ?

like image 615
Ros Avatar asked Aug 17 '11 15:08

Ros


People also ask

Does VisualVM work with Java 11?

Use VisualVM bundled with GraalVMGraalVM contains a fully compliant Java SE 8, Java SE 11, and Java SE 17 JDK distribution based on Oracle JDK and OpenJDK.

Does VisualVM work with OpenJDK?

VisualVM is an open source tool to monitor JVM instances of each running JVM application. Its built-in features can be further enhanced by installing plugins. The users of Oracle JDK or OpenJDK 9 can download this open source tool from https://visualvm.github.io/index.html.

Where can I find VisualVM in JDK?

To find the location of your Java VisualVM userdir, choose Help > About from the main menu and click Details in the About Java VisualVM window.


2 Answers

The file you are trying to open is a Head Dump not a Core Dump.

Follow this steps:

  1. Go to File > Load...
  2. Select the File Format: as Heap Dumps (*.hprof, *.*)
  3. Choose your file and click on Open.
like image 115
Guillermo Garcia Avatar answered Oct 22 '22 05:10

Guillermo Garcia


Heap dump is not a core dump. So you have to open your .hprof file as a heap dump in VisualVM.

like image 5
Tomas Hurka Avatar answered Oct 22 '22 05:10

Tomas Hurka