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 ?
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.
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.
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.
The file you are trying to open is a Head Dump not a Core Dump.
Follow this steps:
Heap dump is not a core dump. So you have to open your .hprof file as a heap dump in VisualVM.
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