Memory Leaks: Finding Them

Detection patterns.

Overview

Finding memory leaks is about isolating which allocations grow unbounded, not just restarting the process when RSS gets uncomfortable. The four signals below cover almost every leak shape long-running services produce.

The approach

The investigation order matters. Watch RSS first, profile when growth is suspected, dig into reference paths only after the profile points to a specific allocation site.

Why this compounds

Leak-hunting fluency compounds because the same toolchain serves every long-running service the team operates. Each leak hunted teaches a little more about the runtime.