Count Apache’s (Httpd) Current Connections

ss -ant | grep :80 | wc -l

Display Apache’s (Httpd) Current Connections

ss -ant | grep :80

Count Number of Connection Currently Active in Apache from Each IP Address

ss -at | awk '{print $5}' | cut -d":" -f1 | sort | uniq -c | sort -nr

Count Number of Connection Currently Established in Apache from Each IP Address

ss -at | grep ESTAB | awk '{print $5}' | cut -d":" -f1 | sort | uniq -c | sort -n


Count Apache’s Actual Running Processes

ps -auxw | grep httpd | grep -v grep | wc -l

Check List of Apache Processes

ps auxw | grep httpd | grep -v grep

[Replace httpd with apache2 for Ubuntu]


Source:
https://www.2daygeek.com/linux-check-apache-concurrent-connections-netstat-ss-command/