SimplyWebHosting.com KnowledgeBase Glossary    Contact Us
Search  
   
Browse by Category
SimplyWebHosting.com KnowledgeBase .: Virtuozzo and OpenVz Based Accounts .: My websites stop responding, even though the server is up and Apache is running.

My websites stop responding, even though the server is up and Apache is running.

It is likely that the issue could be resolved with reconfiguring your Apache configuration file (/etc/httpd/conf/httpd.conf). The problem may be that you have run out of available Apache processes.

To determine if your VPS's Apache web server has reached its MaxClients settings search the /var/log/httpd/error_log for a line similar to:

[Mon Apr 10 11:16:49 2006] [error] server reached MaxClients setting, consider raising the MaxClients setting

The default Apache configuration file settings relating to MaxClients are:

MaxClients 10
KeepAlive off
KeepAliveTimeout 15
MaxKeepAliveRequests 100

MaxClients limits the number of simultaneous requests that can be supported. In the default case, ten requests will be served; any additional requests will be rejected. In times of high traffic volume this will appear as the web server being down to any requests past ten at that moment.

If your site receives relatively high traffic, we recommend that you change the following settings in your Apache configuration file (/etc/httpd/conf/httpd.conf) then restart the Apache service:

MaxClients <N>
KeepAlive on
KeepAliveTimeout 1
MaxKeepAliveRequests 1000

Replace <N> with an appropriate number of processes. You will need to set this number between 10 and the (maximum number of processes your VPS will support) - (processes needed for other services on your VPS). We recommend not raising MaxClients by any more than and additional 50. For Example, to change the MaxClients value to 60 change:

MaxClients 10

to

MaxClients 60

To make these new settings take effect you will need to restart your Apache web server. Test the new settings and determine if you need to raise MaxClients further.

You can find more information these Apache configuration directives at the Apache website at http://httpd.apache.org/docs-2.0/mod/quickreference.html.

If the above fails to solve your problem, email support@advantagecom.net for an alternate solution.


How helpful was this article to you?

Related Articles

article My Apache Web Server has stopped responding
One common reason the Apache configuration file...

  11-11-2005    Views: 4784   
article Configuring and Moving WebPro non-reseller account websites using FrontPage
The steps for configuring and moving WebPro...

  10-3-2007    Views: 9345   
article Where are my Apache HTTP access logs?
Log files are found in the /logs directory for...

  7-21-2005    Views: 6168   

User Comments

No comments have been posted.


.: Powered by Lore 1.5.4
Copyright 2005-2014 Advantagecom Networks, Inc.
SimplyWebHosting.com - Xen Linux Virtual Private Servers (VPS) - Paypal Accepted