LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
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, 04: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, 05:17 PM   #2
acid_kewpie
Moderator
 
Registered: Jun 2001
Location: UK
Distribution: Gentoo, RHEL, Fedora, Centos
Posts: 43,417

Rep: Reputation: 1974Reputation: 1974Reputation: 1974Reputation: 1974Reputation: 1974Reputation: 1974Reputation: 1974Reputation: 1974Reputation: 1974Reputation: 1974Reputation: 1974
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, 08: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, 03:13 AM   #4
acid_kewpie
Moderator
 
Registered: Jun 2001
Location: UK
Distribution: Gentoo, RHEL, Fedora, Centos
Posts: 43,417

Rep: Reputation: 1974Reputation: 1974Reputation: 1974Reputation: 1974Reputation: 1974Reputation: 1974Reputation: 1974Reputation: 1974Reputation: 1974Reputation: 1974Reputation: 1974
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, 11: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


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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 12:22 PM
two simultaneous connections on one line Sjaaksken Linux - Networking 4 01-15-2004 04:42 PM
Multiple simultaneous VPN connections? chamitha Linux - Networking 3 08-29-2002 01:28 AM
Multiple simultaneous VPN connections? chamitha Linux - Newbie 1 08-28-2002 05:12 AM
Multiple simultaneous VPN connections? chamitha Linux - General 1 08-28-2002 05:11 AM


All times are GMT -5. The time now is 10:35 PM.

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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration