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.
- 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
- 1Allocate objects
- 2Keep references by mistake
- 3Memory grows
- 4The process runs out
Where it is used
Long-running services.
Watch out for
Caches without bounds and unclosed listeners.