instructions
- Open both heaps in MAT
- Open a histogram for any heap dump that exhibits abnormal behavior (usually with higher memory or thread usage).

- Compare this to another heap dump

- Select the appropriate heap dump from the list.

Interpretation of Results

Class name: a class that is created in the application and takes up memory
Objects: The number of instances of this class is above or below another heap dump.
Shallow Heap: The number of bytes that this class occupies in memory above or below another heap dump.
hints
Since MAT sorts in descending order by default, I recommend switching the column order of Objects and Shallow Heap to see the top outliers for each in both directions.
You should usually ignore pure Java classes such as Strings, Arrays, and Maps, and focus on the classes that your application defines.
Link
Feature Comparison Eclipse White Paper
source share