Per-thread CPU breakdown troubleshooting
Per-thread CPU%, find the hot TID inside a busy process for jstack/perf
pidstat -t -p <pid> 1
more troubleshooting
all 32 commands →
Hot thread live view
top -H -p <pid>
Per-core CPU saturation
mpstat -P ALL 1
Run-queue vs cores
vmstat 1 5 | awk 'NR>2{print "runq="$1" blocked="$2}'; nproc
Process thread count
ps -o nlwp= -p <pid>; ps -eLf | wc -l
RSS leak over time
while sleep 5; do ps -o rss= -p <pid> | awk '{print strftime("%T"),$1/1024"MB"}'; done