LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This 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


Reply
  Search this Thread
Old 01-10-2011, 03:11 PM   #1
mickyjune26
LQ Newbie
 
Registered: Jan 2011
Posts: 3

Rep: Reputation: 0
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!
 
Old 01-10-2011, 04:17 PM   #2
acid_kewpie
Moderator
 
Registered: Jun 2001
Location: UK
Distribution: Gentoo, RHEL, Fedora, Centos
Posts: 43,417

Rep: Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985
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.
 
Old 01-10-2011, 07:06 PM   #3
mickyjune26
LQ Newbie
 
Registered: Jan 2011
Posts: 3

Original Poster
Rep: Reputation: 0
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?
 
Old 01-11-2011, 02:13 AM   #4
acid_kewpie
Moderator
 
Registered: Jun 2001
Location: UK
Distribution: Gentoo, RHEL, Fedora, Centos
Posts: 43,417

Rep: Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985
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.
 
Old 01-11-2011, 10:05 PM   #5
mickyjune26
LQ Newbie
 
Registered: Jan 2011
Posts: 3

Original Poster
Rep: Reputation: 0
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.
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Simultaneous usage of two dialup connections n3tw0rk Linux - Networking 0 11-01-2004 11:22 AM
two simultaneous connections on one line Sjaaksken Linux - Networking 4 01-15-2004 03:42 PM
Multiple simultaneous VPN connections? chamitha Linux - Networking 3 08-29-2002 12:28 AM
Multiple simultaneous VPN connections? chamitha Linux - Newbie 1 08-28-2002 04:12 AM
Multiple simultaneous VPN connections? chamitha Linux - General 1 08-28-2002 04:11 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 12:09 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration