Quote:
|
Originally Posted by mrkris
fris: he has 75mb of ram free. start servers are at 60, spare at 90. He needs more ram otherwise he will swap out.
|
here is what i have for apache.
Timeout 300
KeepAlive On
MaxKeepAliveRequests 500
KeepAliveTimeout 5
MinSpareServers 5
MaxSpareServers 20
StartServers 8
MaxClients 450
MaxRequestsPerChild 1000
also if he is running freebsd, the defult maxusers is pretty low, which only allows 64 procs running, you may want to recompile kernel to allow many more
kern.maxfiles grows comparing the current value of maxusers
maxusers =1 means you can have 36 procs running at once including the 18 at bootup.
setting to 64 will allow 1044 procs, remember each time the web server spawns another server, it grows, so its gonna be heavy down if your apache isnt tweaked.
might wanna tweak kern.ipc.somaxconn also.
the variable for the amount to listen for tcp connections, this should be set to 1024
also wanna look at NMBCLUSTERS if you have that set low, it will definatly have an impact.
NMBCLUSTERS variable tells how many mbufs available.
that should be all.
this is for freebsd, as all my boxes are freebsd.
64 maxusers =