Linux - NewbieThis Linux forum is for members that are new to Linux.
Just starting out and have a question?
If it is not in the man pages or the how-to's this is the place!
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
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?
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.
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.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.