Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Compare heap dump (HPROF) files

Tags:

Is it possible to compare two HPROF files? How?

like image 440
Asahi Avatar asked Jun 05 '11 09:06

Asahi


People also ask

How do I compare two heap dumps?

Once you have VisualVM open, save or load a previously used heap dump. Once you have generated or loaded the heap dump, click on the "Compare with another heap dump" in the top right corner.

How do I analyze 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 analyze Hprof file Linux?

These hprof files can be configured at startup to track and monitor memory performance issues. In order to analyze the hprof files, there is a tool called Memory Analyzer(MAT) provided by SAP and IBM jointly.

What is heap dump Hprof?

A heap dump is a snapshot of all the objects that are in memory in the JVM at a certain moment. They are very useful to troubleshoot memory-leak problems and optimize memory usage in Java applications. Heap dumps are usually stored in binary format hprof files.


1 Answers

From what I found you can compare only histograms of object. For this go to "Histogram" view, then click "Compare to another Heap Dump" and select another hprof file.

Here is screenshot:enter image description here

like image 90
inazaruk Avatar answered Sep 21 '22 15:09

inazaruk