Top 3 Metrics for Identifying Leaky Growing Objects

When comparing heap snapshots to find memory leaks, focus on the delta of 'Retained Heap Size' (memory freed if an object is GC'd), 'Instance Count' (number of objects), and 'Shallow Heap Size' (memory used by the object itself) to pinpoint actual problematic growing objects.

Sources

Open the full topic