Take the 2-minute tour ×
Server Fault is a question and answer site for professional system and network administrators. It's 100% free, no registration required.

I have a very good server running an Apache instance with mod_jk for proxying the request to an Application server.

I'm doing a load test and although I'm sending over 600 requests, the status worker keep showing this:

256 requests currently being processed, 0 idle workers

I'm using 'prefork MPM'

<IfModule prefork.c>
    ServerLimit          2048
    StartServers         5
    MinSpareServers      5
    MaxSpareServers      10
    MaxClients           1000
    MaxRequestsPerChild  0
</IfModule>

Is there a compiled limit for Apache to handle just 256 request or what would I be missing?

share|improve this question
    
Please add your complete MPM configuration (and which MPM you are actually using) to your question. The directive StartThreads is only valid for the MPMs beos, mpm_netware, and perchild. –  joschi Oct 3 '09 at 10:50

3 Answers 3

Kamil, no it doesn't. MaxClients is fine being lower than ServerLimit. You can increase MaxClients up to ServerLimit and that adjustment can be done with a graceful restart. To increase ServerLimit, you have to do a full restart.

share|improve this answer

compile with --mpm=worker

share|improve this answer

If you read the documentation for MaxClients you'll notice it mentions that you also need to set ServerLimit to be equal to the value of MaxClients. I think this is what you are missing.

share|improve this answer

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.