Interview Prep/Docker/Limits, logging, health checks and restarts

Memory usage seems to grow in `docker stats` but the app is fine.

AdvancedScenarioLimits, logging, health checks and restarts
Answer

Situation read → Page cache counts toward the cgroup's usage.

What I'd do → Compare memory.current with memory.stat (anon vs file) in /sys/fs/cgroup. Newer docker stats subtracts inactive file cache. Alert on working set and OOM events, not raw usage.

Why → Reclaimable cache is freed under pressure; it isn't a leak.

Interview tip → Working set = usage minus inactive_file.

All Docker questions Roadmap: Docker & containers

More on Limits, logging, health checks and restarts