Check number of active connections Apache

Whatever your reasons may be, the following code will give you the number of active Apache connections.

netstat -an |grep :80 |wc