Process thread count troubleshooting
Thread count per pid and system-wide; runaway threads exhaust kernel.pid_max
ps -o nlwp= -p <pid>; ps -eLf | wc -l
more troubleshooting
all 32 commands →
RSS leak over time
while sleep 5; do ps -o rss= -p <pid> | awk '{print strftime("%T"),$1/1024"MB"}'; done
Fast memory rollup
cat /proc/<pid>/smaps_rollup
Largest memory mappings
pmap -x <pid> | sort -k3 -rn | head
Kernel slab top consumers
slabtop -o -s c | head -20
Reclaimable slab memory
grep -E 'Slab|SReclaimable|SUnreclaim' /proc/meminfo