Рост RSS во времени troubleshooting
Снимаем RSS каждые 5с — подтверждаем реальную утечку (монотонный рост), а не обычную работу
while sleep 5; do ps -o rss= -p <pid> | awk '{print strftime("%T"),$1/1024"MB"}'; done
more troubleshooting
all 32 commands →
Быстрый итог по памяти
cat /proc/<pid>/smaps_rollup
Крупнейшие отображения памяти
pmap -x <pid> | sort -k3 -rn | head
Топ потребителей slab ядра
slabtop -o -s c | head -20
Освобождаемая память slab
grep -E 'Slab|SReclaimable|SUnreclaim' /proc/meminfo
OOM killer в dmesg
dmesg -T | grep -iE 'killed process|out of memory' | tail