GuideThe process was killed. Was it out of memory?
The OOM killer is the end of a memory problem. The process may have been slow for some time before it was killed.
A kill is easy to find. The useful part is what came before it: which limit was reached, whether the machine or only one control group was short, and how long the process had been struggling.
Step 1: confirm it was the OOM killer
journalctl -k | grep -i -E 'out of memory|oom'
The kernel logs each kill. If the process ran in a container, look at its control group next; a kill there may never show as a shortage on the machine.
Step 2: which limit was reached
cat /proc/PID/cgroup
mount -t cgroup2
GROUP below is the process’s control group. In /proc/PID/cgroup, the cgroup v2 entry has the hierarchy ID 0 and an empty controller list; its last field is the group’s path, relative to the mount point that the second command prints.
cat /sys/fs/cgroup/GROUP/memory.events
cat /sys/fs/cgroup/GROUP/memory.max /sys/fs/cgroup/GROUP/memory.current
In memory.events, oom_kill is the number of processes in the group killed by any kind of OOM killer, and max is the number of times usage was about to go over the limit. The kernel documentation says that when usage reaches memory.max and cannot be reduced, the OOM killer is invoked in the group.
On Kubernetes, the documentation says memory limits are enforced by the kernel with out-of-memory kills. The container’s limit is this file.
Step 3: was it slow before it was killed?
cat /sys/fs/cgroup/GROUP/memory.high /sys/fs/cgroup/GROUP/memory.pressure
memory.high is the softer boundary, where one is set. Above it, the documentation says, the group’s processes are throttled and put under heavy reclaim pressure, and going over it never invokes the OOM killer. The high counter in memory.events counts how often that happened.
This is the case that is missed: a process that is never killed and is slow all day because it lives just above its high boundary. memory.pressure shows the share of time lost to it.
Step 4: was the whole machine short?
grep -E 'MemAvailable|SwapFree' /proc/meminfo
vmstat 1
MemAvailable is an estimate of how much memory is available for starting new applications without swapping. In vmstat, si and so are memory swapped in and out each second. A machine that is swapping can make any process on it wait on disk.
Step 5: why this process and not another
cat /proc/PID/oom_score /proc/PID/oom_score_adj
A higher oom_score means the process is more likely to be selected. oom_score_adj, from -1000 to +1000, is added to that score; -1000 is equivalent to disabling OOM-killing for the task.
What this cannot tell you
What the memory shortage did to everything else. A process short of memory can wait on disk and spend CPU reclaiming pages, so the incident can look like three problems. These files show memory was short; they do not show that memory was where it started.
Where Commotion begins
Every step above is done by hand, on one machine, while the incident is still happening. Commotion makes the judgement for every process on the node, each second: it judges a process on measured waiting, not on usage, and names which of CPU, memory, disk or network is at the root, with the measurement that proves it.
It runs beside the monitoring you already have. Read one incident, or see what Early Access involves.
Checked on 3 December 2026 against: Kernel documentation: control group v2, cgroups(7), proc_meminfo(5), vmstat(8), proc_pid_oom_score(5), proc_pid_oom_score_adj(5), Kubernetes: resource management for pods and containers. Command output differs between versions; read your own manual pages.
Stop guessing the cause from graphs.
Sign-up is not open yet; write to commotion@littlebit.in to ask about a trial.