Can Apache log simultaneous connections?
We just setup a Moodle server in Apache. We would like to track how close (if at all) we are getting to our MaxClients limit. Is there a log that will show simultaneous connections?
If there is, can it be set to only log when specific numbers are hit? Thanks in advance! |
you can't really log that, as it's a continuously fluctuating value. You yourself can periodically check the apache server-status page, which does contain that the load time of the page, status of each thread etc. Alternatively you can just do a netstat and see how many connections there are to the web server.
|
Thanks for the reply!
I'm resurrecting some linux knowledge here...I guess I could run an automated task to pipe the results of netstat into a file, truncating it so it only sends the connection info... But aside from that, there isn't a way for Apache to send a signal when the number of concurrent connections hits a specific number? Wouldn't admins would want to know if they are getting close to their MaxClient number before Apache starts rejecting connections? What are your thoughts? |
apache will log when it does hit the max clients number, but below that, I don't think so. There might be something between the soft and hard limits for threads.... that might provide a "warning" area, but I doubt it.
|
Thank you for your reply. Until we find an alternate solution, I'll just run netstat a lot during the expected peak times to determine the connection loads.
|
All times are GMT -5. The time now is 02:54 PM. |