Server Fault is a question and answer site for system and network administrators. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

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?


share|improve this question

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

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

Your Answer


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.