Below command will display the no of connections form a certain ip
netstat -ntu | awk '{print $5}' | cut -d: -f1 | sort | uniq -c | sort –n
If the server is overloaded then its a very useful command to check if httpd causing the load.
netstat -ntu | awk '{print $5}' | cut -d: -f1 | sort | uniq -c | sort –n
0 comments:
Post a Comment