Raising MaxClients? Change ServerLimit.

Remember, if you raise MaxClients for an MPM in Apache, you must raise the ServerLimit directive, which is normally set to 256 on most servers.  The ServerLimit maximum is always obeyed, no matter what MaxClients says. For example, if MaxClients is set to 500 and ServerLimit is 256 (or it is unspecified), then Apache can only serve 256 clients at a time.

Important items to remember:

  • Only add ServerLimit in the actual MPM configuration section itself.
  • Increase the MaxClients/ServerLimit in a sane manner - make small increments and test.
  • Keep in mind that 500 concurrent requests can use 75% or more of modern CPU's and upwards of 1.5GB of RAM, depending on the content.
Printed from: http://rackerhacker.com/2006/12/27/raising-maxclients-change-serverlimit/ .
© Major Hayden 2012.

Leave a Reply

 

  • Welcome! I started this blog as a way to give back to all of the other system administrators who have taught me something in the past. Writing these posts brings me a lot of enjoyment and I hope you find the information useful. If you spot something that's incorrect or confusing, please write a comment and let me know. Drop me a line if there's something you want to know more about and I'll do my best to write a post on the topic.
    -- Major Hayden

    Flattr this