RSS leak over time troubleshooting
Sample RSS every 5s to confirm a real leak (monotonic growth) vs steady churn
while sleep 5; do ps -o rss= -p <pid> | awk '{print strftime("%T"),$1/1024"MB"}'; done
more troubleshooting
all 32 commands →
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
OOM killer in dmesg
dmesg -T | grep -iE 'killed process|out of memory' | tail