Updated: 11 October 2026 · Applies to: AlmaLinux 9, Rocky Linux 9, Ubuntu 24.04 and Debian 12

The OOM (out of memory) killer is part of the Linux kernel. When the system runs out of memory and swap, it stops a process, usually the one using the most memory, to keep the server alive.

See what it did

dmesg -T | grep -i -E "out of memory|killed process"
journalctl -k | grep -i oom

Prevent it

  • Find what uses memory: ps aux --sort=-%mem | head.
  • Tune memory-hungry services (for example database buffers or PHP-FPM children).
  • Add swap as a safety net, or add RAM.

Related services

KVM VPS hosting

NVMe SSD and full root access, with Free Basic Managed Support.

Unmanaged dedicated servers

full root access and free IPMI KVM, with Free Basic Managed Support.

Managed dedicated servers

our engineers look after the server for you, from $135 a month.

Was this answer helpful?

Still stuck? Open a ticket