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.

Illustrative mockup for ubuntu-26-04-lts β€” post-183-2
Illustrative mockup – Progressive Robot β€” Illustrative mockup β€” Progressive Robot

Environment & Reproduction

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

Illustrative mockup for ubuntu-26-04-lts β€” post-183-2
Illustrative mockup – Progressive Robot β€” Illustrative mockup β€” Progressive Robot

Root Cause Analysis

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

Illustrative mockup for ubuntu-26-04-lts β€” post-183-2
Illustrative mockup – Progressive Robot β€” Illustrative mockup β€” Progressive Robot

Quick Triage

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

Illustrative mockup for ubuntu-26-04-lts β€” post-183-2
Illustrative mockup – Progressive Robot β€” Illustrative mockup β€” Progressive Robot

Step-by-Step Diagnosis

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

Illustrative mockup for ubuntu-26-04-lts β€” post-183-1
Illustrative mockup – Progressive Robot β€” Illustrative mockup β€” Progressive Robot

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.

Illustrative mockup for ubuntu-26-04-lts β€” post-183-2
Illustrative mockup – Progressive Robot β€” Illustrative mockup β€” Progressive Robot

Solution – Alternative Approaches

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

Illustrative mockup for ubuntu-26-04-lts β€” post-183-2
Illustrative mockup – Progressive Robot β€” Illustrative mockup β€” Progressive Robot

Verification & Acceptance Criteria

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

Illustrative mockup for ubuntu-26-04-lts β€” post-183-2
Illustrative mockup – Progressive Robot β€” Illustrative mockup β€” Progressive Robot

Rollback Plan

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

Illustrative mockup for ubuntu-26-04-lts β€” post-183-2
Illustrative mockup – Progressive Robot β€” Illustrative mockup β€” Progressive Robot

Prevention & Hardening

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

Illustrative mockup for ubuntu-26-04-lts β€” post-183-2
Illustrative mockup – Progressive Robot β€” Illustrative mockup β€” Progressive Robot

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.

Illustrative mockup for ubuntu-26-04-lts β€” post-183-2
Illustrative mockup – Progressive Robot β€” Illustrative mockup β€” Progressive Robot

References & Further Reading

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

Illustrative mockup for ubuntu-26-04-lts β€” post-183-2
Illustrative mockup – Progressive Robot β€” Illustrative mockup β€” Progressive Robot

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.