Knowledgebase

Portal Home > Knowledgebase > Articles Database > monitoring apache connections?


monitoring apache connections?




Posted by joeshacks, 02-22-2008, 08:12 PM
whats the easiest way to monitor the number of apache connections?

Posted by Patrick, 02-22-2008, 08:32 PM
What do you mean exactly, like how many IP addresses are connected to Apache ... or be more specific?

Posted by joeshacks, 02-22-2008, 08:43 PM
well there a couple of things i want to do.. but i would like to know at any given time how many apache connections are open. also is there anyway to determine the current traffic speed would be? like if the server is using 2.3 mbps ?

Posted by Patrick, 02-22-2008, 08:50 PM
Most control panels, such as cPanel, come with the option to view Apache's server-status but if you're not using a control panel take a look at the following link: http://httpd.apache.org/docs/2.0/mod/mod_status.html If you configure Apache for mod_status you can view how many connections are open, the bandwidth being used, and a bunch of other neat statistics. Demo: http://httpd.apache.org/server-status

Posted by joeshacks, 02-22-2008, 10:40 PM
server-status does give me a lot of the information i want. but is there a way to get that data from the command line?

Posted by Patrick, 02-23-2008, 02:01 AM
If you're using Apache2, then apache-top would be useful as it's interactive and would obviously update in real time: Link: http://www.fr3nd.net/projects/apache-top/ If you're using Apache1, then the only thing that comes to mind is to call the server-status manually via the following command: /usr/local/apache/bin/apachectl status

Posted by david510, 02-23-2008, 02:04 AM
To see number of IP connections and IPs connected to port 80, use the following command.

Posted by joeshacks, 02-23-2008, 02:59 PM
thanks! thats what i was looking for..

Posted by david510, 02-24-2008, 07:57 AM
Some more commands. To see connections to your server IP to port 80.

Posted by john8, 02-24-2008, 09:41 AM
And you can use the simple "ifconfig" command to check the traffic of your server.



Was this answer helpful?

Add to Favourites Add to Favourites    Print this Article Print this Article

Also Read
Nameservers Help!! (Views: 511)
Hostgator (Views: 542)


Language:

Contact us