Friday, December 2, 2022

Check Apache concurrent Connections using Netstat command

$ netstat -tn 2>/dev/null | grep :80 | awk '{print $5}' | cut -d: -f1 | sort | uniq -c | sort -nr | head
หรือ
$ netstat -plan|grep :80|awk {'print $5'}|cut -d: -f 1|sort|uniq -c|sort -nk 1
  • ต้องการแค่บรรทัด แรก ก็
$ netstat -tn 2>/dev/null | grep :80 | awk '{print $5}' | cut -d: -f1 | sort | uniq -c | sort -nr | head -n 1
Ref
  • https://www.cloudtechtiq.com/blog/check-apache-concurrent-connections-using-netstat-command
  • https://askubuntu.com/questions/239631/how-can-i-watch-the-current-connections-on-my-apache-webserver
  • https://fedingo.com/how-to-check-number-of-concurrent-connections-in-apache/
  • https://www.2daygeek.com/linux-check-apache-concurrent-connections-netstat-ss-command/
  • https://stackoverflow.com/questions/46021955/get-first-line-of-a-shell-commands-output

No comments:

Post a Comment

Popular Posts