Linode Forum
Linode Community Forums
 FAQFAQ    SearchSearch    MembersMembers      Register Register 
 LoginLogin [ Anonymous ] 
Post new topic  Reply to topic
Author Message
PostPosted: Thu Oct 15, 2009 12:15 pm 
Offline
Senior Member

Joined: Mon Oct 12, 2009 1:20 am
Posts: 50
I do not understand what the difference is between ServerLimit and MaxClients in a prefork environment.

I understand MaxClients is the total number of apache processes that will be spawned to serve users. The manual for serverlimit says:

For the prefork MPM, this directive sets the maximum configured value for MaxClients for the lifetime of the Apache process. For the worker MPM, this directive in combination with ThreadLimit sets the maximum configured value for MaxClients for the lifetime of the Apache process. Any attempts to change this directive during a restart will be ignored, but MaxClients can be modified during a restart.


..."for the lifetime of the Apache process". What the heck does that mean?


Top
   
 Post subject:
PostPosted: Thu Oct 15, 2009 12:43 pm 
Offline
Senior Member
User avatar

Joined: Sun Jan 18, 2009 2:41 pm
Posts: 830
My (possibly incorrect) understanding is that ServerLimit for prefork is a hard limit that can only be changed by stopping and starting Apache.

For example, say you have MaxClients=10 and ServerLimit=100. If you want to change MaxClients to 50, you can just edit the config file and send a HUP signal (or USR1) to the main Apache process, and the change will take effect. However, if you want to set MaxClients to 1000, you must completely stop Apache and restart it. (You would of course need to increase ServerLimit accordingly first.)

I honestly don't know what would happen in the MaxClients=1000 case - I guess Apache would either ignore the change, or set MaxClients to be 100.


Top
   
 Post subject:
PostPosted: Thu Oct 15, 2009 5:31 pm 
Offline
Senior Member

Joined: Mon Oct 12, 2009 1:20 am
Posts: 50
Ah okay. Thank you!


Top
   
Display posts from previous:  Sort by  
Post new topic  Reply to topic


Who is online

Users browsing this forum: No registered users and 2 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum

Search for:
Jump to:  
RSS

Powered by phpBB® Forum Software © phpBB Group