httpd-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Jeff Trawick <>
Subject Re: ServerLimit, MaxClients
Date Wed, 19 Dec 2001 22:49:41 GMT
Daniel Lopez <> writes:

> Can be MaxClients and ThreadLimit eliminated?

Sure, but...

Here is how I would have them configured with prefork:

  MaxClients:       big enough to handle normal, expected load
  ServerLimit:      as large as is reasonable for the machine without
                    wasting a lot of shared memory

If my server load goes up and clients start to get big delays or even
get connection-refused from the kernel because the queues are growing
too long, then I'd want to bump up MaxClients and do a graceful
restart and keep everybody happy.

If you limit yourself to only one directive to control this then you
either have painful, connection-dropping restarts to deal with
unexpectedly high activity or you allow Apache to grow into
unexpectedly high resource usage without you being in on the
decision, because our simple method of dealing with graceful restart
requires that the allocated size of the scoreboard stay the same.

Most folks aren't going to deal with ServerLimit or ThreadLimit
because the default values are reasonable (or we ought to fix them!),
or at least reasonable for the smaller machines.

Jeff Trawick | | PGP public key at web site:
             Born in Roswell... married an alien...

View raw message