Detecting leaks overview
Detection happens at three levels:
flowchart LR local[Local DevTools] logs[Logs and CLI metrics] prod[Production monitoring] local --> logs logs --> prod
| Level | Best for |
|---|---|
| Local | Reproducing, heap snapshots, fixing |
| Logs | Staging soak tests, CI regression |
| Production | Trend alerts, incident response |
This section covers
Section titled “This section covers”- Chrome DevTools Memory
- performance.memory — browser live metrics
- Reading memory graphs — sawtooth vs staircase
- process.memoryUsage() — Node logging
- Log signatures — OOM text patterns
- Monitoring dashboards — Grafana-style trends
- Grafana & Kubernetes — PromQL, pod restarts, limit %, K8s chart shapes