View Single Post
Old 04-03-2003, 07:27 PM  
Smegma
Confirmed User
 
Join Date: Feb 2002
Posts: 1,751
jules180 - Here are some points you can tune in apache to improve performance. I can do these for you if you like. Just ICQ me: 74335014 - I wont try and sell you anything.

1) turn KeepAlives off

2) Depending on the amount of memory installed on your server, increase MaxClients to 256 (max install from generic install).

I tune MaxClients for a heavy loaded server to the number of MB or RAM I have. You simply have to change the HARD_LIMIT to reflect the new MaxClients in httpd.h and recompile.

256 should work though. We only have 50 or 60 servers here that need to have a higher setting and they are pushing 50mbps + per server.

3) Turn MaxRequestsPerChild 0 (which is unlimited)

4) Change StartServers to like:

StartServers 50
or
StartServers 75

StartServers is the number of httpd servers apache keeps loaded at all times (number of connections + StartServers)

4) Change the following. Keeps Apache ahead of the game!

MinSpareServers 64
MaxSpareServers 128


5) Also make sure to turn off loging or turn on log rotation. Log files more than 2GB in Linux fuck apache up.

Check to make sure you don't have a log file over 2GB by doing a du -h | grep G in the log directory.
__________________
<a href="http://www.jupiterhosting.com"><img src="http://www.jupiterhosting.com/banners/55x55.jupiter.gif" alt="" border="0" align=""></a>
Smegma is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote