>> Assuming you have the concept right, if I have 'MaxClients 50' and >> 'MaxSpareServers 10', there should never be more than 60 apache2 >> processes running and I should be able to serve up to 50 simultaneous >> TCP sessions? > > I'd guess it wouldnt go past 50. > >> Can anyone explain why I have 20 apache2 processes running moments >> after an apache2 restart with 'MaxSpareServers 10' and without more >> than 1 or 2 simultaneous TCP sessions? > > Do you have StartServer set to 10 (default is 2 or 3) > Have any TCP sessions recently closed? Maybe the Server isn't > re-cycled until the *_WAIT TCP states have timed out.
Do you know if MaxClients includes clients associated with *_WAIT TCP states? I'm trying to figure out the hard limit on apache2 processes according to my config so I can plan for memory usage accordingly, but I get the feeling I'm going about it the wrong way. Doesn't every sysadmin need to do this to make sure they don't run out of memory? I have: StartServers 5 MinSpareServers 5 MaxSpareServers 10 MaxClients 50 MaxRequestsPerChild 10000 - Grant