Linux top threads Recipe
- Run
topin the background with a 30 second interval:nohup sh -c "top -c -w 512 -b -H -d 30 | grep --line-buffered -A 10 '^top - ' >> diag_topH_$(hostname)_$(date +%Y%m%d_%H%M%S).txt" &>> diag_nohup.out & - Reproduce the problem.
- After the problem is reproduced, stop collection by killing the
topprocess. For example:pkill -TERM -f "top -c -w 512" - Upload
diag_*