Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Java 8 mdmp dump file analyzing with jvisualvm Add VM Coredump grayed / blanked out

Tags:

java

jvisualvm

I found Tool for analyzing java core dump, which is really close, but when I open up jvisualvm and open "File" menu, the "Add VM Coredump" option is not available. When I run the other option listed in the overflow article I don't get a thread dump. I'm digging into the jmap command a little farther, but I'd like to know how to use the Add VM Coredump feature as it would make life a bit easier.

like image 625
visch Avatar asked Jun 03 '16 16:06

visch


People also ask

How to open heap dump file in VisualVM?

Opening a Heap Dump File If you have a heap dump file saved on your local system, you can open the file in Java VisualVM by choosing File > Load from the main menu. Java VisualVM can open heap dumps saved in the . hprof file format. When you open a saved heap dump, the heap dump opens as a tab in the main window.

How to open jvm core dump?

Go to the File menu, Open Thread Dumps and navigate to a Java core file you want to analyze. It should be immediately apparent that there is a wealth of debugging details that you can use, including JRE version and the operating system.

What is Coredump Java?

A core dump is a binary file capturing the entire heap contents at the moment the dump is captured. When you load a core dump in Java VisualVM, a node for the core dump appears below the Core Dump node. To view an overview of the core dump, right-click the core dump node and choose Open.


1 Answers

You must be on Solaris or Linux to access the VisualVM Coredumps option.

In the documentation (http://visualvm.java.net/coredumps.html) it says:

The Core Dump node is visible in the Applications window if VisualVM is running on Solaris or Linux. Generally, VisualVM can only open a core dump if the core dump was taken on the same machine. A core dump contains informaton on the Java Development Kit (JDK) and kernel of the machine where the core dump was taken. To open the core dump in VisualVM, this information must match the JDK software and kernel of the local system.

like image 168
michael_bitard Avatar answered Oct 04 '22 20:10

michael_bitard