LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 02-28-2007, 01:17 PM   #1
thetawaverider
Member
 
Registered: Feb 2006
Distribution: CentOS
Posts: 47

Rep: Reputation: 15
Apache processes exceeding MaxClients


Hello,

I'm using Apache 2.2 w/ the worker MPM. I currently have my Apache MaxClients set to 75. I was under the impression that connections could not exceed this number. When I just checked my server-status, however, it states

Code:
86 requests currently being processed, 3 idle workers
Is MaxClients just a rough estimate of the maximum number of simultaneous connections allowed? Or am I misunderstanding something else here?

Thanks,
TWR
 
Old 02-28-2007, 01:48 PM   #2
thetawaverider
Member
 
Registered: Feb 2006
Distribution: CentOS
Posts: 47

Original Poster
Rep: Reputation: 15
I'm guessing now that excess mentioned above is due to the ServerLimit being set too high, as opposed to the MaxClients. If indeed this is the case, and ServerLimit is what actually regulates the maximum number of connections, what is the real point of MaxClients?

Thanks,
TWR
 
Old 02-28-2007, 04:11 PM   #3
thetawaverider
Member
 
Registered: Feb 2006
Distribution: CentOS
Posts: 47

Original Poster
Rep: Reputation: 15
Server-status number of requests far in excess of MaxClients

If anyone knows the answer to this, PLEEEEASE let me know (servers are under very heavy load).

I currently have the following httpd configuraton for worker:

Code:
ServerLimit          4
ThreadLimit         15
StartServers         2
MaxClients          60
MinSpareThreads     15
MaxSpareThreads     60
ThreadsPerChild     15
MaxRequestsPerChild  0
This should, in theory, only allow a maximum of 60 simultaneous connections (ServerLimit times MaxThreads, or MaxClients). However, when looking at my server-status a few minutes ago, I saw

Code:
165 requests currently being processed, 12 idle workers
This is so far out of the range, I can't believe it. Does anyone know what I'm doing wrong here? It appears that I'm doing the right thing by the documentation.

I'd be so grateful if someone could shed some light on this.

Thanks,
TWR

p.s. I'm adding more memory tomorrow when it arrives. I just need to handle this issue today before it arrives. Thanks.
 
Old 02-28-2007, 09:03 PM   #4
thetawaverider
Member
 
Registered: Feb 2006
Distribution: CentOS
Posts: 47

Original Poster
Rep: Reputation: 15
Sorry to have to bump this, but my servers being crippled by excess traffic and I'm hoping someone has an answer to my questions above.

Thanks,
TWR
 
Old 02-28-2007, 11:11 PM   #5
thetawaverider
Member
 
Registered: Feb 2006
Distribution: CentOS
Posts: 47

Original Poster
Rep: Reputation: 15
I have the answer to this seeming impossibility - the previous sysadmin's documentation was all wrong. According to him, the server was compiled as a worker, when in reality, it was compiled as a prefork. A lesson learned - don't put 100% faith in someone else's documentation, even if they set up the network.

(Sorry for the double post in Linux - Servers - won't happen again
 
  


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
Apache performance server reached MaxClients setting Erhnam Linux - Networking 4 06-26-2008 11:56 PM
Apache MaxClients mphllps Linux - Software 2 03-13-2006 08:46 AM
apache , MaxClients, and Dos abulmagd Linux - Networking 1 02-02-2006 11:08 AM
Apache MaxClients Issue SiLiCoN *BSD 6 12-08-2005 01:14 PM
apache maxclients exceed abefroman Mandriva 0 04-23-2004 03:06 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 06:03 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