Overview
Comment: | Fixed watch close wait script |
---|---|
Downloads: | Tarball | ZIP archive | SQL archive |
Timelines: | family | ancestors | descendants | both | v1.64 |
Files: | files | file ages | folders |
SHA1: |
1d4c2ff5eca8fa3596b875d1679a444c |
User & Date: | mrwellan on 2017-07-17 10:42:02 |
Other Links: | branch diff | manifest | tags |
Context
2017-07-17
| ||
10:48 | Minor improvements to installall.sh check-in: 997d9118b4 user: mrwellan tags: v1.64 | |
10:42 | Fixed watch close wait script check-in: 1d4c2ff5ec user: mrwellan tags: v1.64 | |
08:50 | Added simple script for observing close_wait check-in: 2d5edb0a67 user: mrwellan tags: v1.64 | |
Changes
Modified utils/watch-close-wait.sh from [41ceea4376] to [76c32422d7].
1 2 3 4 5 | 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 | | | 1 2 3 4 5 6 7 8 | 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 |