When Linux cannot find free memory (RAM and swap exhausted), the out-of-memory killer picks a process (by a badness score, oom_score) and kills it with SIGKILL to keep the system alive; Linux overcommits memory by default, so allocations can succeed even when the memory is not really available until it is touched.
Investigate with dmesg or journalctl ("Out of memory: Killed process ..."), monitor memory growth, and check limits: in containers, a cgroup memory limit triggers an OOM kill of the container's process (often exit code 137, which is 128 plus signal 9).
Fix by reducing memory use, raising limits, adding swap carefully, or fixing the leak.
Loading…