You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@httpd.apache.org by Himanshu Raina <ra...@yahoo.com> on 2010/07/23 14:36:35 UTC

[users@httpd] Apache - Client Max Out

Hi,
What are the possible reasons for apache to max out ? How can this be diagnosed ? I am running a webserver with MaxClients of 200. On some occasions the http hits the ceiling and starts rejecting connection. The chances of it happening are as high as once a day. Could it be a result of bad coding or is there something wrong with my apache. I'm using apache(2.0.55) with php (5.2.6). Any help / suggestion in this regard is appreciated.
RegardsHimanshu 


Re: [users@httpd] Apache - Client Max Out

Posted by Matus UHLAR - fantomas <uh...@fantomas.sk>.
On 05.08.10 09:47, Himanshu Raina wrote:
> To: uhlar@fantomas.sk

this is a mailing list, please avoid private copies.

please configure your mailer to wrap lines below 80 characters per line.
72 to 75 is usually OK.

> Nginx (working as a frontend server) proxying requests to apache. Since
> increasing apache MaxClient value to something higher isn't a good idea
> (esp when static and dynamic content have been separated), I'm wondering
> what are my options. What is the best way to debug such a problem. The
> logs contain the usual information. Could netstat be of any help here ?
> I'm just looking for ways and means to tackle this situation.

if the logs only contain usual informations, your server is apparently used
much, and you have no other options than increase limits.
You even have proxy that should offload it. 

You may also check if the served content is cacheable (mostly the dynamic
one) and if the scripts serving it are effective enough.

-- 
Matus UHLAR - fantomas, uhlar@fantomas.sk ; http://www.fantomas.sk/
Warning: I wish NOT to receive e-mail advertising to this address.
Varovanie: na tuto adresu chcem NEDOSTAVAT akukolvek reklamnu postu.
99 percent of lawyers give the rest a bad name. 

---------------------------------------------------------------------
The official User-To-User support forum of the Apache HTTP Server Project.
See <URL:http://httpd.apache.org/userslist.html> for more info.
To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
   "   from the digest: users-digest-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org


Re: [users@httpd] Apache - Client Max Out

Posted by Himanshu Raina <ra...@yahoo.com>.
Hi Matus,
Well the setup is like this.
Nginx (working as a frontend server) proxying requests to apache. Since increasing apache MaxClient value to something higher isn't a good idea (esp when static and dynamic content have been separated), I'm wondering what are my options. What is the best way to debug such a problem. The logs contain the usual information. Could netstat be of any help here ? I'm just looking for ways and means to tackle this situation.
Regards,

--- On Mon, 26/7/10, Matus UHLAR - fantomas <uh...@fantomas.sk> wrote:

From: Matus UHLAR - fantomas <uh...@fantomas.sk>
Subject: Re: [users@httpd] Apache - Client Max Out
To: users@httpd.apache.org
Date: Monday, 26 July, 2010, 2:41 PM

Hello,

please configure your mailer to wrap lines below 80 characters per line.
72 to 75 is usually OK.

Thank you.

On 23.07.10 18:06, Himanshu Raina wrote:
> What are the possible reasons for apache to max out ? How can this be
> diagnosed ? I am running a webserver with MaxClients of 200. On some
> occasions the http hits the ceiling and starts rejecting connection. The
> chances of it happening are as high as once a day. Could it be a result of
> bad coding or is there something wrong with my apache. I'm using
> apache(2.0.55) with php (5.2.6). Any help / suggestion in this regard is
> appreciated.

apparently your server is being used. Check logs if it's not being abused
(e.g. if you don't have an open proxy).
-- 
Matus UHLAR - fantomas, uhlar@fantomas.sk ; http://www.fantomas.sk/
Warning: I wish NOT to receive e-mail advertising to this address.
Varovanie: na tuto adresu chcem NEDOSTAVAT akukolvek reklamnu postu.
I'm not interested in your website anymore.
If you need cookies, bake them yourself.

---------------------------------------------------------------------
The official User-To-User support forum of the Apache HTTP Server Project.
See <URL:http://httpd.apache.org/userslist.html> for more info.
To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
   "   from the digest: users-digest-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org




Re: [users@httpd] Apache - Client Max Out

Posted by Matus UHLAR - fantomas <uh...@fantomas.sk>.
Hello,

please configure your mailer to wrap lines below 80 characters per line.
72 to 75 is usually OK.

Thank you.

On 23.07.10 18:06, Himanshu Raina wrote:
> What are the possible reasons for apache to max out ? How can this be
> diagnosed ? I am running a webserver with MaxClients of 200. On some
> occasions the http hits the ceiling and starts rejecting connection. The
> chances of it happening are as high as once a day. Could it be a result of
> bad coding or is there something wrong with my apache. I'm using
> apache(2.0.55) with php (5.2.6). Any help / suggestion in this regard is
> appreciated.

apparently your server is being used. Check logs if it's not being abused
(e.g. if you don't have an open proxy).
-- 
Matus UHLAR - fantomas, uhlar@fantomas.sk ; http://www.fantomas.sk/
Warning: I wish NOT to receive e-mail advertising to this address.
Varovanie: na tuto adresu chcem NEDOSTAVAT akukolvek reklamnu postu.
I'm not interested in your website anymore.
If you need cookies, bake them yourself.

---------------------------------------------------------------------
The official User-To-User support forum of the Apache HTTP Server Project.
See <URL:http://httpd.apache.org/userslist.html> for more info.
To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
   "   from the digest: users-digest-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org