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 know more!
Shallow Heap vs Retained Heap
-
Pingback: Efficient Data Handling in Java 23: Compact Strings, Off-Heap Storage, Weak references and Zero-Copy Techniques - yCrash
