apache connections

count the apache connections

netstat -nt | grep :80 | wc -l

show number of connections for each ip address

netstat -ntu | awk ‘{print $5}’ | cut -d: -f1 | sort | uniq -c | sort –

 

netstat -an|awk ‘/tcp/ {print $6}’|sort|uniq -c

Leave a Reply

Your email address will not be published. Required fields are marked *