Find the memory hog in your systemd services instantly
Process & Resource Monitoring (Top/Htop/Ps/Systemd)
Find the memory hog in your systemd services instantly
🧩 The Challenge
You know that feeling when a server hits swap and the load average goes through the roof, but looking at top just gives you a screen of random PIDs? It’s a nightmare trying to figure out which specific service is actually eating all your RAM.
💡 The Fix
Skip the manual guesswork and use systemd-cgtop to see exactly how your resources are split across your control groups. It’s basically top for your services, showing you the real footprint of each unit.
systemd-cgtop
⚙️ Why It Works
This utility pulls data directly from the Linux control group hierarchy, which means you’re seeing actual service-level consumption rather than just individual process noise. It’s way cleaner when you’re trying to figure out which microservice is leaking memory.
🚀 Pro-Tip: Hit ‘k’ to change the sorting order if you’re hunting down CPU spikes instead of memory bloat.
Linux Tips & Tricks | © ngelinux.com | 11/5/2026
