LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Software (https://www.linuxquestions.org/questions/linux-software-2/)
-   -   Apache processes exceeding MaxClients (https://www.linuxquestions.org/questions/linux-software-2/apache-processes-exceeding-maxclients-533332/)

thetawaverider 02-28-2007 01:17 PM

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

thetawaverider 02-28-2007 01:48 PM

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

thetawaverider 02-28-2007 04:11 PM

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.

thetawaverider 02-28-2007 09:03 PM

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

thetawaverider 02-28-2007 11:11 PM

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 ;)


All times are GMT -5. The time now is 02:58 AM.