π ~1 min read
Table of contents
Symptom & Impact
Critical applications are killed unexpectedly, causing downtime and data loss risk.
Environment & Reproduction
Appears under sudden memory spikes, leaks, or insufficient swap allocation.
Root Cause Analysis
Kernel out-of-memory logic selects processes when reclaim cannot recover enough RAM.
Quick Triage
Confirm OOM events in kernel logs and identify terminated processes.
Step-by-Step Diagnosis
Analyze memory timeline, cgroup limits, and process-level growth patterns.

Solution – Primary Fix
Increase memory headroom, tune limits, and fix application memory leaks.
Still having issues? Our Managed IT Services team can diagnose and resolve this for you. Get in touch for a free consultation.

Solution – Alternative Approaches
Set oom_score_adj and cgroup protections for critical services.
Verification & Acceptance Criteria
No new OOM kills occur under peak workload tests.
Rollback Plan
Revert memory policy changes if they introduce resource starvation elsewhere.
Prevention & Hardening
Deploy memory SLO alerts and load-shedding controls before saturation.
Related Errors & Cross-Refs
Out of memory: Kill process, oom_reaper, and memory cgroup out of memory.
Related tutorial: View the step-by-step tutorial for Ubuntu 20.04 LTS.
View all Ubuntu 20.04 LTS tutorials on the Tutorials Hub β
Browse all common problems & solutions on the Tutorials Hub.
References & Further Reading
Linux OOM behavior, cgroup memory controls, and Ubuntu tuning guidance.
Need Expert Help?
If you cannot resolve this yourself, our team offers hands-on Server Management, Managed IT Services, and flexible Support Plans. Contact us today β we respond within one business day.