Is it possible to compare two HPROF files? How?
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.
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.
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.
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.
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:
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