Artifact 41ceea4376ee9be2f15f7174d8e0ed83cb939fae:
- Executable file utils/watch-close-wait.sh — part of check-in [2d5edb0a67] at 2017-07-17 08:50:27 on branch v1.64 — Added simple script for observing close_wait (user: mrwellan, size: 305) [annotate] [blame] [check-ins using]
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 "$(lsof -n | grep CLOSE_WAIT | grep $id |grep CLOSE_WAIT | wc -l)" sleep 1 done