LxCenter HyperVM & Kloxo Support

Forum



Members   Search      Help    Register    Login    Home
Home » Development Forums » Kloxo Development » apache-optimize should be removed until better thought out.
apache-optimize should be removed until better thought out. [message #93919] Tue, 10 January 2012 11:09 Go to previous message
shazar is currently offline shazar  United States
Messages: 1856
Registered: May 2011
Grandmaster
LxCenter Core Team Member
LxCenter Representative
I thought I had explained in good detail how the directives for httpd work. Here is a snippet from the apache-optimize script:

<IfModule prefork.c>
StartServers 2
MinSpareServers {$minpar_p}
MaxSpareServers {$maxpar_p}
ServerLimit 256
MaxClients 256
MaxRequestsPerChild 4000
MaxMemFree 2
</IfModule>

http://project.lxcenter.org/projects/kloxo/repository/revisi ons/master/entry/kloxo/bin/fix/apache-optimize.php

ServerLimit is always set at 256 and MaxClients is set to 256.

If $minpar_p is set to 10 and $maxpar_p is set to 25 then here is the result:

When httpd is started you will have 10 - 11 httpd processes to start with minimally. As the day goes on you will have 25 to 26 running. As the day goes further it can peak at 256 to 257 processes running. How does this optimize the memory? The min and max spare servers do not dictate what the peak httpd processes will be and therefore will not dictate peak memory usage.


https://www.mercuryvps.com
HyperVM Xen VPS hosting

[Updated on: Tue, 10 January 2012 11:11]

Report message to a moderator

 
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic:[INFO] different between Apache 2.2.22 and 2.4.1
Next Topic:PHP 5.3 for Kloxo
Goto Forum:
  


Current Time: Fri May 24 13:47:47 EDT 2013

Total time taken to generate the page: 0.01022 seconds
.:: Contact :: Home :: Privacy ::.

Click here to lend your support to: LxCenter and make a donation at www.pledgie.com !

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software