Skip to content
StackDecode
System Design
16. Performance EngineeringAnimated

Memory Leaks

Memory that is never released.

The idea

Objects stay referenced and accumulate until the process fails.

Watch it work

Press play, pause, or step through. Some animations have settings you can change.

AppsCollectorMetrics (Promet…Logs (Loki)Traces (Tempo)Dashboards
  • client
  • gateway / proxy
  • service
  • cache
  • data store
  • queue / stream

Apps emit metrics, logs and traces.

step:
1/4
at:
Apps
1/9

The green dot is a request moving through the system.

Step by step

  1. 1Allocate objects
  2. 2Keep references by mistake
  3. 3Memory grows
  4. 4The process runs out

Where it is used

Long-running services.

Watch out for

Caches without bounds and unclosed listeners.

Related