View Single Post
Old 03-04-2005, 01:15 AM  
SplitInfinity
Confirmed User
 
Join Date: Dec 2002
Location: San Diego, CA
Posts: 3,047
Here is how you can find out if this might be the problem:

On the command line, type: ps -aux|grep httpd|wc -l

It will return a number. If this number is about 300ish or close, but not above,
then its most likely the problem I solve above.

For Apache 2.0, its EASY as pie to fix:

Set these like this:

Timeout 60
KeepAlive On (Set this to off if your site is only doing CGI redirection, but on in most all other cases)
MaxKeepAliveRequests 0
KeepAliveTimeout 20
ServerLimit 1000

<IfModule prefork.c>
StartServers 100
MinSpareServers 5
MaxSpareServers 30
MaxClients 1000
MaxRequestsPerChild 0
</IfModule>

Note, this is all dependant on RAM and PROCESSOR
so if your notice your ram is all eaten up, reduce MaxClients to like 700

(if you didnt know, this is in the file /etc/httpd/conf/httpd.conf)

Edit that file, then do this:
service httpd restart
SplitInfinity is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote