Which cgroup version are you on and why does it matter?
IntermediateScenarioLimits, logging, health checks and restarts
Answer
Situation read → Some images or tools assume v1 paths.
What I'd do →
stat -fc %T /sys/fs/cgroup # cgroup2fs => v2
docker info | grep -i cgroup
Update old monitoring agents and JVMs (JDK 15+/8u372+ understand v2).
Why → v2 is the unified hierarchy, default on modern distros, and gives better memory/IO accounting.
Interview tip → Old Java versions ignoring v2 limits was a notorious pitfall.
More on Limits, logging, health checks and restarts
A Java container is OOM-killed at 512 MB. Why isn't the heap the whole story?IntermediateHow do you cap CPU and memory for a container and what happens on exceed?BeginnerLatency spikes though CPU usage looks low (50%).Advanced`docker logs` is empty but the app is running.BeginnerConfigure log rotation globally.BeginnerShip container logs to a central system.Intermediate