I am using Eclipse + MAT plugin. I could see one .hprof file heap history, I take two snapshot of my Java application. I wish when I compare two heap dump, I could figure which objects instance increase a lot so that I could identify the potential of memory leak.
Could netbean do that?
Class Name: The class that is instantiated in the application, taking up memory
Objects: The count of how many instances of the class are present above or below the other heap dump.
Shallow Heap: The number of bytes the given class is taking up in memory above or below the other heap dump.
Since MAT sorts descending by default I recommend toggling the ordering of the Objects and Shallow Heap columns to see the top outliers for each in both directions.
Typically you should ignore the pure Java classes like Strings, Arrays, and Maps and focus on the classes that your app defines.
Comparing Objects Official Eclipse Help Doc
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