httpd-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Boyle Owen" <>
Subject RE: [users@httpd] Apache not shutting down idle processes
Date Tue, 11 Feb 2003 16:34:44 GMT
>-----Original Message-----
>From: Steve Lane []
>Sent: Dienstag, 11. Februar 2003 17:16
>Subject: [users@httpd] Apache not shutting down idle processes
>Hello all:
>I've got machine running Apache 1.3.27, RedHat 7.2. 2 gigs of 
>RAM, 2 2 GHz Xeon processors.

Nice machine...

>Symptom: over time, more and more apache processes are opened, 
>up to the cap of 150, at which point the machine is critically low on

Gosh.. that can't be good.

>Why is Apache not reusing these processes? It seems to keep 
>opening more and
>more until it chokes. I have MaxSpareServers set to something like 20.

This is bad...

>I get about 700 users a day on the system. Today already so 
>far I've had 250
>and they have only opened 25 Apache processes. It doesn't seem 
>like I should ever need 150.

Indeed. What could be causing this???

>My only thought is that it has something to do with PHP. 
>All the server does is serve a PHP app, 

Oh oh...

>which opens a lot of database connections. 


>These are not persistent connections, though.

Oh yeah? 

Please excuse my facetious approach but that was really what was going
through my mind when I read your post. As you probably know, this is not
typical behaviour for apache so I would respectfully suggest that there
is a problem with the implementation of your PHP database client. It
would indeed seem that the PHP client is keeping the DB handle open
after it has finished with it.

To debug, you might try running apache in single-user mode (-X switch)
under strace (I think, in Linux:

# strace httpd -X -f /path/to/config

and then watch what happens while you hit it. Obviusly, you'd need to
take the server offline to do this.

Also, what DB is it? Do you have any logging or analysis tools available
for it?

Owen Boyle

>Any ideas? My users are getting killed ...
>-- sgl
>Steve Lane
>Vice President
>The Moyer Group
>14 North Peoria St Suite 2H
>Voice: (312) 433-2421       Email:
>Fax:   (312) 850-3930       Web:
>The official User-To-User support forum of the Apache HTTP 
>Server Project.
>See <URL:> for more info.
>To unsubscribe, e-mail:
>   "   from the digest:
>For additional commands, e-mail:

This message is for the named person's use only. It may contain
confidential, proprietary or legally privileged information. No
confidentiality or privilege is waived or lost by any mistransmission.
If you receive this message in error, please notify the sender urgently
and then immediately delete the message and any copies of it from your
system. Please also immediately destroy any hardcopies of the message.
You must not, directly or indirectly, use, disclose, distribute, print,
or copy any part of this message if you are not the intended recipient.
The sender's company reserves the right to monitor all e-mail
communications through their networks. Any views expressed in this
message are those of the individual sender, except where the message
states otherwise and the sender is authorised to state them to be the
views of the sender's company. 

The official User-To-User support forum of the Apache HTTP Server Project.
See <URL:> for more info.
To unsubscribe, e-mail:
   "   from the digest:
For additional commands, e-mail:

View raw message