Peek at container resource limits without digging through cgroup hierarchies

Container Basics On Linux (Namespaces/Cgroups)

Peek at container resource limits without digging through cgroup hierarchies

🧩 The Challenge

Trying to figure out why your container keeps getting OOM-killed is a nightmare when you’re wading through nested cgroup files manually. I’ve wasted way too much time hunting for the right memory limit file while a production app was down.

💡 The Fix

Use systemd-cgtop to see live resource usage and limits for all cgroups at once. It saves you from guessing which container is actually starving the host of RAM.

systemd-cgtop

⚙️ Why It Works

This utility hooks directly into the cgroup hierarchy to pull real-time stats for every active slice and service. It effectively turns a confusing file tree into a readable dashboard you can actually parse under pressure.

🚀 Pro-Tip: Hit ‘k’ inside the view to sort by memory usage so you can spot the memory hog immediately.

Linux Tips & Tricks | © ngelinux.com | 10/4/2026

0 0 votes
Article Rating
Subscribe
Notify of
guest

0 Comments
Newest
Oldest Most Voted