Artifact 76c32422d7cb729659ea0f9487d9c51778718753:
- Executable file utils/watch-close-wait.sh — part of check-in [1d4c2ff5ec] at 2017-07-17 10:42:02 on branch v1.64 — Fixed watch close wait script (user: mrwellan, size: 408) [annotate] [blame] [check-ins using] [more...]
psline=$(ps -F -u $USER | grep "mtest" |grep " -run " | egrep " -(target|reqtarg) "| head -1) id=$(echo $psline|awk '{print $2}') echo "Watching process for command line: $psline" echo " with PID=$id" while true;do echo "CLOSE_WAIT: $(lsof -n | grep CLOSE_WAIT | grep $id | wc -l) ALL OPEN: $(lsof -n |grep $id|wc -l) ALL CLOSE_WAIT: $(netstat -ap 2> /dev/null| grep -i close_wait| wc -l)" sleep 1 done