You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@httpd.apache.org by Russell Bell <ru...@gmail.com> on 2009/04/03 00:45:09 UTC

[users@httpd] Explosion of clients

I run a crontab job that collects the 'top' output every 5 minutes.
Twice in the last 6 months httpd has spawned as many clients
as it can, consuming all memory.  For months it uses 14-20 clients
then, suddenly, explodes to creating 50 to 100 - whatever the
value of MaxClients.  The logs that record accesses don't show
an increase in accesses or errors - indeed they show a decrease.
I see no unusual behavior in any logs.

We run CentOS Linux 2.6.18-92.1.22.el5 #1 SMP Tue Dec 16 12:03:43 EST
2008 i686 i686 i386 GNU/Linux

Server version: Apache/2.2.3
Server built:   Nov 12 2008 10:41:27

Restarting stops the explosion of clients and all returns to as it was.
The first time it happened I searched for causes, marked it as a
quirk, but it happened again yesterday.

Thanks for your attention.

russell bell

---------------------------------------------------------------------
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] Explosion of clients

Posted by Nick Cooper <ni...@jdi-solutions.co.uk>.
To use server-status you will need to add:

<Location /server-status>
SetHandler server-status
</Location>

On Fri, Apr 3, 2009 at 12:21 AM, Morten K. Poulsen <mo...@fabletech.com>wrote:

> Hi Russell,
>
> On Thu, 2009-04-02 at 16:45 -0600, Russell Bell wrote:
> > I run a crontab job that collects the 'top' output every 5 minutes.
> > Twice in the last 6 months httpd has spawned as many clients
> > as it can, consuming all memory.  For months it uses 14-20 clients
> > then, suddenly, explodes to creating 50 to 100 - whatever the
> > value of MaxClients.  The logs that record accesses don't show
> > an increase in accesses or errors - indeed they show a decrease.
> > I see no unusual behavior in any logs
>
> What are those httpd processes serving?
>
> Is Apache still responding?
>
> > Restarting stops the explosion of clients and all returns to as it was.
> > The first time it happened I searched for causes, marked it as a
> > quirk, but it happened again yesterday.
>
> If Apache is still responding, you can get an overview of this by
> requesting the server-status page (if you have mod_status enabled):
>
> lynx http://127.0.0.1/server-status
>
> If Apache is not responding, I've written a tool which might help you
> find out what is going on:
>
> http://fabletech.com/ftasv
>
> This tool can easily be run from cron to log activity at regular
> intervals.
>
> Best regards,
> Morten
>
> --
> Morten K. Poulsen <mo...@fabletech.com>
> CTO, FableTech
> http://fabletech.com/
>
>
> ---------------------------------------------------------------------
> 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] Explosion of clients

Posted by "Morten K. Poulsen" <mo...@fabletech.com>.
Hi Russell,

On Thu, 2009-04-02 at 16:45 -0600, Russell Bell wrote:
> I run a crontab job that collects the 'top' output every 5 minutes.
> Twice in the last 6 months httpd has spawned as many clients
> as it can, consuming all memory.  For months it uses 14-20 clients
> then, suddenly, explodes to creating 50 to 100 - whatever the
> value of MaxClients.  The logs that record accesses don't show
> an increase in accesses or errors - indeed they show a decrease.
> I see no unusual behavior in any logs

What are those httpd processes serving?

Is Apache still responding?

> Restarting stops the explosion of clients and all returns to as it was.
> The first time it happened I searched for causes, marked it as a
> quirk, but it happened again yesterday.

If Apache is still responding, you can get an overview of this by
requesting the server-status page (if you have mod_status enabled):

lynx http://127.0.0.1/server-status

If Apache is not responding, I've written a tool which might help you
find out what is going on:

http://fabletech.com/ftasv

This tool can easily be run from cron to log activity at regular
intervals.

Best regards,
Morten

-- 
Morten K. Poulsen <mo...@fabletech.com>
CTO, FableTech
http://fabletech.com/


---------------------------------------------------------------------
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