Skip to content

cgroups: limits, and why exit code 137 happens

Select an icon to see what it is.

Step 4 of 6

Over the limit: the OOM killer

When the cgroup cannot reclaim enough memory, the kernel's OOM killer chooses a process inside that cgroup and sends it SIGKILL. The rest of the host is not affected. The kernel logs the kill and bumps the counters in memory.events.

dmesg and memory.events

Memory cgroup out of memory: Killed process 4321 (<name>)
memory.events contains:
oom 1
oom_kill 1