Help - Search - Members - Calendar
Full Version: Apache httpd.conf optimizing...
The Planet Forums > Control Panels > Plesk
mahiraminc
I have a Celeron with 512MB RAM running Plesk 6.0 with 45,000 unique hits daily. My server's CPU resources were hogged to 99.9 percent and the server cannot stay online for more than a day now. It simply dies off due to the load. I installed APF and Anti.dos script with that. I have disabled telnet and other useless services. Now, I during this time, I also modified my httpd.conf file located at

/etc/httpd/conf/httpd.conf

to play around with the server settings. These are the current settings I have on my file:


StartServers 8
MinSpareServers 7
MaxSpareServers 13
MaxClients 100
MaxRequestsPerChild 50



StartServers 2
MaxClients 100
MinSpareThreads 25
MaxSpareThreads 75
ThreadsPerChild 25
MaxRequestsPerChild 0



NumServers 5
StartThreads 5
MinSpareThreads 5
MaxSpareThreads 10
MaxThreadsPerChild 20
MaxRequestsPerChild 0



I need to know what the default settings should be and if I made a mistake in changing these numbers, can anybody suggest better numbers here. Not to mention, my server is still slow and I see CPU usage is always 99.9% but server load is only in the 10s.

Thanks!
mahiraminc
Can anybody atleast post a copy of their httpd.conf contains in the above sections? Thanks... I really need help optimizing httpd.conf because my server is just being over loaded. Thanks.
cryptic
I read that setting MaxClients to high will bog your server down. Look to see about what your average clients connected # is and play with that in your MaxClients. Always retstart httpd after its been modified.
---edit---
Also may want to upgrade to a Gig of ram.
cryptic
Timeout 300
KeepAlive On
MaxKeepAliveRequests 100
KeepAliveTimeout 15
MinSpareServers 5
MaxSpareServers 20
StartServers 8
MaxClients 450
MaxRequestsPerChild 1000

from a FreeBSD box
mahiraminc
QUOTE
Originally posted by cryptic
I read that setting MaxClients to high will bog your server down. Look to see about what your average clients connected # is and play with that in your MaxClients. Always retstart httpd after its been modified.
---edit---
Also may want to upgrade to a Gig of ram.


How do I check the # of clients connected?

As per your advice... I could possibly edit my settings.

Also one big questions.....

Which section do you edit in the file?



or



or



? Thanks.
bmeshier
Turn KeepAlive OFF! BTW, your server should never "die", just slow down. What version of Plesk are you running?
This is a "lo-fi" version of our main content. To view the full version with more information, formatting and images, please click here.
Invision Power Board © 2001-2010 Invision Power Services, Inc.