Server Freezing or what are the optimal settings for http.conf file?

Andruhius

Verified User
Joined
Oct 23, 2009
Messages
10
Hi! I wonder are there any optimal settings for httpd.conf file if I have the following server (VPS) specs for the moment:

CentOS release 5.3 (Final)
Processor Name Intel(R) Core(TM)2 Quad CPU Q9550 @ 2.83GHz
Processor Speed (MHz) 2834.124
Total Memory 524288 kB
Free Memory 73916 kB
Total Swap Memory 131064 kB
Free Swap Memory 131064 kB

The httpd.conf file settings are:

MinSpareServers 9
MaxSpareServers 9
StartServers 5
MaxClients 99
MaxRequestsPerChild 99


I have about 10 websites and 1 of them only receives traffic about 100 unique visitors and 300(!!!) search bots daily. After launching this site the server is freezing and all I can do is to reboot it. As I can see to fix this I need either configure httpd.conf or configure .htaccess file to limit the bots.
The admin of the server keep telling me that all those freezes happen coz overload of processor and it keep freezing.
Are there any solution how can I fix this issue?
Thank You!!
 
Last edited:
Without knowing how your VPS handles memory management it's not really possible to answer you.

Jeff
 
Xen reserves resources, so no one else but you can use them, and they should be always available to you.

Your settings should be adequate, though of course specific patterns of how your sites run and the resources they use are impossible to know, and it's possible that you could create more optimum settings with experience.

Does the server completely freeze (you can't even log into your shell from a shell program on your dekstopor your VPS management account [if yours offers a shell login]), or does just the httpd service freeze? You may need your hosting company to look at your server while appears to be frozen to see how much it's using in the way of resources at that moment, or to check your traffic at that time, both incoming and outgoing.

Jeff
 
As I found out the server was freezing coz hundreds of search engine bots overloaded the cpu of vps with their requests so I couldn't even connect to it as swap overload as well appeared.
I have just bought dedicated server so I hope this problem will never exist for me again.
Thank you!
 
Back
Top