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

`OOMKilled: true` and exit code 137.

BeginnerTroubleshootingResources, health checks, logging and restarts
Answer

Likely causes → Process exceeded --memory, a leak, or a limit too small for the workload (JVM, page cache for tmpfs).

Diagnose →

docker inspect -f '{{.State.OOMKilled}} {{.HostConfig.Memory}}' c
docker stats --no-stream c
dmesg -T | grep -i 'memory cgroup out of memory'

Fix → Raise the limit, tune the runtime (heap -Xmx or MaxRAMPercentage), fix leaks.

Prevent → Load-test to size limits; alert at 90% of the limit.

All Docker questions Roadmap: Docker & containers

More on Resources, health checks, logging and restarts