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 want to set my serverLimit to 1024, and I am using prefork.c

So, went to prefork.c, made the change, did make, make install.

Then I did an apachectl stop && apachectl start

Not I change the directive again in httpd.conf but I'm still getting the following error:

MaxClients of 1024 exceeds ServerLimit value of 256 servers, lowering MaxClients to 256. To increase, please see the ServerLimit directive. Syntax OK

Any idea whatsoever I need to do?

Thanks..

share|improve this question
add comment

2 Answers 2

In Apache 2.x you don't need to modify source code for increasing maximum clients above 255 like in Apache 1.3 you had to.

Instead just tune your httpd.conf. Put there in prefork configuration section

ServerLimit 1024
MaxClients 1024

And you should be all set.

share|improve this answer
3  
Ok thanks for the help. It was an order problem, ie serverlimit needs to come BEFORE MaxClients... –  rixx Aug 11 '11 at 11:41
    
Solved my problem. Thanks –  alfish Sep 19 '12 at 2:32
add comment

Have you checked that in your configuration file, you don't set the ServerLimit to 256 ?

Don't forget to restart httpd so that the ServerLimit is indeed correctly changed.

You may also use the module status to get an idea of the configuration results.

share|improve this answer
add comment

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.