LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   Can Apache log simultaneous connections? (https://www.linuxquestions.org/questions/linux-newbie-8/can-apache-log-simultaneous-connections-855428/)

mickyjune26 01-10-2011 03:11 PM

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!

acid_kewpie 01-10-2011 04:17 PM

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.

mickyjune26 01-10-2011 07:06 PM

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?

acid_kewpie 01-11-2011 02:13 AM

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.

mickyjune26 01-11-2011 10:05 PM

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.