📖 ~1 min read
Table of contents
Symptom & Impact
Interactive latency spikes and workload stalls occur while swap I/O dominates Ubuntu 22.04 system resources.
Environment & Reproduction
Ubuntu 22.04 with memory-hungry applications; reproduce using constrained RAM and concurrent service bursts.
Root Cause Analysis
Working set exceeds physical memory, forcing frequent page reclaim and swap churn that starves CPU for useful work.
Quick Triage
Run free -h, vmstat 1, and top/htop to confirm high si/so rates and identify top memory consumers.
Step-by-Step Diagnosis
Correlate memory pressure with dmesg OOM hints, inspect cgroup limits, and check swappiness and zswap settings.

Solution – Primary Fix
Reduce memory footprint, tune vm.swappiness, add RAM or swap as appropriate, and restart offending processes in a controlled sequence.
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
Enable zram for burst absorption, enforce cgroup memory limits, or rebalance services across additional Ubuntu nodes.
Verification & Acceptance Criteria
Swap-in/out rates drop, response times recover, and no OOM kills occur during expected peak load.
Rollback Plan
Revert sysctl changes and service limits from backups if tuning causes instability or throughput regression.
Prevention & Hardening
Capacity-plan memory with headroom, monitor PSI metrics, and alert early on sustained reclaim pressure.
Related Errors & Cross-Refs
Related Ubuntu 22.04 topics include OOM killer events, JVM heap oversizing, and container memory limit misconfiguration.
Related tutorial: View the step-by-step tutorial for Ubuntu 22.04 LTS.
View all Ubuntu 22.04 LTS tutorials on the Tutorials Hub →
Browse all common problems & solutions on the Tutorials Hub.
References & Further Reading
man vmstat, kernel memory management docs, Ubuntu performance tuning guides, and cgroup v2 references.
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.