Biggest Culprit: Over-Sized Data Structures

Another common OOM pattern stems from legitimate but excessively large data structures like `HashMaps` or `ArrayLists`, often acting as caches without proper size limits or eviction policies. Heap dumps reveal these by showing a single or a few classes consuming a disproportionately large percentage of the retained heap.

Sources

Open the full topic