Find the memory hog that is not showing up in top
Process & Resource Monitoring (Top/Htop/Ps/Systemd)
Find the memory hog that is not showing up in top
🧩 The Challenge
Everyone has dealt with a server that feels sluggish while top says there is plenty of free RAM. It turns out that some processes dump memory into buffers or handle paging in ways that standard tools just gloss over.
💡 The Fix
Use ps to look at the Resident Set Size relative to the actual virtual memory. It will show you exactly which processes are eating up physical RAM rather than just asking the kernel for address space.
ps -eo pid,rss,vsz,comm --sort=-rss | head -n 11
⚙️ Why It Works
This command forces ps to display the resident memory size, which is what’s actually sitting in your physical RAM modules, sorted by the heaviest offenders. It pulls the curtain back on the processes that are actively hoarding your hardware instead of just claiming memory they aren’t using yet.
🚀 Pro-Tip: Alias this to memhogs in your .bashrc and stop guessing why your cache is constantly getting pushed out.
Linux Tips & Tricks | © ngelinux.com | 11/23/2026
