`docker stats` shows 100%+ CPU and the container is slow.
IntermediateTroubleshootingResources, health checks, logging and restarts
Answer
Likely causes → Multi-core usage above 100% is normal (200% = two cores); with --cpus limit the app is throttled.
Diagnose →
docker exec c cat /sys/fs/cgroup/cpu.stat
docker exec c top -b -n1 | head -15
Fix → Increase --cpus, profile the hot path, scale out.
Prevent → Track nr_throttled metrics.
More on Resources, health checks, logging and restarts
Container restarts repeatedly: `docker ps` shows `Restarting (1) 5 seconds ago`.Beginner`OOMKilled: true` and exit code 137.BeginnerContainer is `unhealthy` but the app works when tested manually.Intermediate`docker logs` is slow or `docker logs -f` hangs on a container with huge logs.Intermediate`Error response from daemon: configured logging driver does not support reading` when running `docker logs`.IntermediateApplication hangs and logs stop: log driver blocking (`fluentd: connection refused`).Advanced