DiigIT | IT Community
No Profile Image
Welcome Guest
New User? Register | Login

Apache server hangs but still online

By: Admin | 29 Apr 2009 8:23 pm

I have a Dedicated server on Lunarpages.com

After some time my Apache Server get Hanged and nothing works have connect through SSH and check the CPU usage it shows  13- 25% but their is no Httpd request which means that the server is not sending any httpd request.. after restarting the Apache it works fine...

Please solve my Problem

Comments

Hello,

I have checked the logs and I was able to notice that the MaxClients option is hit :

[Thu Apr 23 20:03:46 2009] [error] server reached MaxClients setting, consider raising the MaxClients setting [Fri Apr 24 06:23:04 2009] [error] server reached MaxClients setting, consider raising the MaxClients setting [Mon Apr 27 00:49:43 2009] [error] server reached MaxClients setting, consider raising the MaxClients setting [Mon Apr 27 02:49:01 2009] [error] server reached MaxClients setting, consider raising the MaxClients setting [Mon Apr 27 03:12:39 2009] [error] server reached MaxClients setting, consider raising the MaxClients setting [Mon Apr 27 07:30:10 2009] [error] server reached MaxClients setting, consider raising the MaxClients setting [Mon Apr 27 08:58:30 2009] [error] server reached MaxClients setting, consider raising the MaxClients setting [Wed Apr 29 01:05:29 2009] [error] server reached MaxClients setting, consider raising the MaxClients setting [Wed Apr 29 07:30:46 2009] [error] server reached MaxClients setting, consider raising the MaxClients setting [Wed Apr 29 07:41:50 2009] [error] server reached MaxClients setting, consider raising the MaxClients setting [Wed Apr 29 07:58:28 2009] [error]

server reached MaxClients setting, consider raising the MaxClients setting

I have increased MaxClients top the value of 300 and restarted Apache so that the changes would take effect:

[root@server ~]# cat /usr/local/apache/conf/httpd.conf | grep MaxClients MaxClients 300

Let me explain in few words what is the

MaxClients option for.

MaxClients is an Apache directive that limits the total number of HTTP processes that can run on your server.

Therefore, MaxClients also limits the number of clients/visitors who can simultaneously connect to your websites.

This is a global Apache setting affecting all sites on your server.

and this solve my problem

By: Admin | 30 Apr 2009

Leave a comment

Enter the text in the image
img
Can't read?
Type the characters you see in the picture below.


Close Move