Stop guessing why your system is thrashing on memory
Process & Resource Monitoring (Top/Htop/Ps/Systemd)
Stop guessing why your system is thrashing on memory
🧩 The Challenge
You know that feeling when the whole server turns into molasses, but top doesn’t show a single CPU-hungry process? It’s usually the OOM killer silently eating your dinner because a hidden process is ballooning on RAM.
💡 The Fix
Use the ps command to peek at the resident set size for every running process, which lets you catch the memory hog before it hits swap.
ps aux --sort=-rss | head -n 10
⚙️ Why It Works
By telling ps to sort the output by RSS, the biggest memory consumers float right to the top of the list instantly.
🚀 Pro-Tip: Stick this in an alias like ‘memhogs’ so you can run it the second the machine feels sluggish.
Linux Tips & Tricks | © ngelinux.com | 10/4/2026
