Debugging JVM Memory Leaks with Eclipse MAT
Debugging JVM Memory Leaks with Eclipse MAT

Debugging JVM Memory Leaks with Eclipse MAT

Author
Shiv Bade
Tags
memory
jvm
eclipse mat
Published
June 24, 2015
Featured
Slug
Tweet
Hit a nasty memory leak in our backend. Heap dumps were huge. Enter Eclipse Memory Analyzer Tool.
It helped us: - Analyze heap retention paths - Identify orphaned caches - Fix static collections growing forever
Heap histograms showed:
java.util.HashMap - 3.4 GB byte[] - 2.1 GB
Lesson: Don't guess memory usage. Profile it.