You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@httpd.apache.org by Randy Paries <ra...@unitnet.com> on 2004/10/04 16:15:09 UTC

[users@httpd] A couple of tuning questions

Hello,

I have a rh9 box with apache 2 and tomcat 5

The apache server gets about  1.2M hits a day

on average i have about 110 httpd running when i do a ps -ef | grep httpd |
wc -l, but on Monday mornings my busiest I have around 225 httpd running

I am trying to determine what are the best setting for my prefork MPM
settings.

I am getting conflicting suggestions on MaxClients on the RH pages it says::
"However, it is not recommended that the value for MaxClients exceeds 256
when using the prefork MPM. "
BUT on other pages is says that on busy sites i should have MaxClients  512
and ServerLimit set to 1024 Not sure if my server is considered busy. I am
tending to think yes.

these are my current settings:
<IfModule prefork.c>
StartServers         5
MinSpareServers   5
MaxSpareServers  10
ServerLimit           400
MaxClients            400
MaxRequestsPerChild  0
</IfModule>

Thanks for any suggestions 



---------------------------------------------------------------------
The official User-To-User support forum of the Apache HTTP Server Project.
See <URL:http://httpd.apache.org/userslist.html> for more info.
To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
   "   from the digest: users-digest-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org


Re: [users@httpd] A couple of tuning questions

Posted by Joshua Slive <js...@gmail.com>.
On Mon, 4 Oct 2004 09:15:09 -0500, Randy Paries
<ra...@unitnet.com> wrote:

> I am getting conflicting suggestions on MaxClients on the RH pages it says::
> "However, it is not recommended that the value for MaxClients exceeds 256
> when using the prefork MPM. "

That's not very good advice.

> BUT on other pages is says that on busy sites i should have MaxClients  512
> and ServerLimit set to 1024 Not sure if my server is considered busy. I am
> tending to think yes.

If apache is the only thing running on the box, then you should set
MaxClients to the highest number that the system can handle in
physical memory.  You need to be sure to restrict MaxClients to
prevent apache from ever using so much memory that the system starts
to swap, since your performance will get killed.

If you are running other services on the box, then you obviously need
to set MaxClients to a lower number to allow those other services to
have resources.

Joshua.

---------------------------------------------------------------------
The official User-To-User support forum of the Apache HTTP Server Project.
See <URL:http://httpd.apache.org/userslist.html> for more info.
To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
   "   from the digest: users-digest-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org