Post

Debugging JVM Memory Leaks with Eclipse MAT

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:

1
2
3
java.util.HashMap  - 3.4 GB
byte[]             - 2.1 GB

Lesson: Don’t guess memory usage. Profile it.

This post is licensed under CC BY 4.0 by the author.