Affected versions: 26.04

📖 ~1 min read

Table of contents
  1. Symptom & Impact
  2. Environment & Reproduction
  3. Root Cause Analysis
  4. Quick Triage
  5. Step-by-Step Diagnosis
  6. Solution – Primary Fix
  7. Solution – Alternative Approaches
  8. Verification & Acceptance Criteria
  9. Rollback Plan
  10. Prevention & Hardening
  11. Related Errors & Cross-Refs
  12. References & Further Reading

Symptom & Impact

System freezes under load and applications are killed unexpectedly. Logs show Out Of Memory killer activity.

Environment & Reproduction

Observed on low-RAM VMs, browser-heavy desktop sessions, or builds that exceed available memory and swap.

Root Cause Analysis

Working set exceeds RAM and configured swap, causing kernel to terminate processes to recover memory.

Quick Triage

Check current memory pressure with free -h, vmstat 1 5, and swapon –show.

Step-by-Step Diagnosis

Inspect OOM events with journalctl -k -b | grep -i ‘out of memory’. Identify offenders via systemd-cgtop.

Solution – Primary Fix

Add swapfile using fallocate, mkswap, and swapon, then tune swappiness in /etc/sysctl.d/. Enable and size zram if appropriate.

Still having issues? Our IT Solutions & Services team can diagnose and resolve this for you. Get in touch for a free consultation.

Solution – Alternative Approaches

Reduce parallel jobs, limit browser tabs, or increase VM RAM allocation for sustained workloads.

Verification & Acceptance Criteria

No new OOM kill entries during peak load tests and interactive responsiveness remains stable.

Rollback Plan

Disable added swap entries in /etc/fstab and remove swapfile if side effects appear.

Prevention & Hardening

Use monitoring for memory saturation and set service memory limits with systemd resource controls.

Related entries include ‘Killed process … total-vm’ and desktop lockups under memory contention.

Related tutorial: View the step-by-step tutorial for Ubuntu 26.04 LTS.

View all Ubuntu 26.04 LTS tutorials on the Tutorials Hub →

Browse all common problems & solutions on the Tutorials Hub.

References & Further Reading

Ubuntu memory tuning docs, systemd resource-control manual, and kernel VM documentation.

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.