Shallow Heap vs. Retained Heap [Video]
One of these heaps is not like the other.
Join the DZone community and get the full member experience.Join For Free
Eclipse MAT is a powerful tool to analyze heap dumps. It comes in handy when debugging OutOfMemoryError. Eclipse MAT reports two types of object size: 1) Shallow Heap 2) Retained Heap. This video explains the difference between them and how they are calculated. Watch this video to learn more!
Opinions expressed by DZone contributors are their own.