httpd-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Dan Goodinson" <Dan.Goodin...@businessobjects.com>
Subject RE: [users@httpd] n00b question - too many Apache child processes?
Date Thu, 24 Jun 2004 13:30:29 GMT
Thanks Owen.

Would there be any benefit in limiting the number of child processes, or would this simply
cause thing to slow down?  Conversely, perhaps I should consider increasing the limit to number
of child processes, in case the crash is caused by Apache running out of available children?

Your suggestion of MaxSpareServers would be able to increase/decrease the child processes,
right?

Cheers,
Dan.

-----Original Message-----
From: Boyle Owen [mailto:Owen.Boyle@swx.com] 
Sent: 24 June 2004 14:25
To: users@httpd.apache.org
Subject: RE: [users@httpd] n00b question - too many Apache child processes?




> -----Original Message-----
> From: Dan Goodinson [mailto:Dan.Goodinson@businessobjects.com]
> Sent: Donnerstag, 24. Juni 2004 14:48
> To: users@httpd.apache.org
> Subject: [users@httpd] n00b question - too many Apache child
> processes?
> 
> 
> Hi,
> 
> This is the first time I've used this list - please be gentle with me! 
> If I should do anything wrong, please let me know and I'll make a 
> mental note for next time ;-)
> 
> My problem is this...  I have Apache 1.3.27 (not IHS) running
> on an AIX
> 5l system.  I am a support engineer for a BI company, and recently our
> web application has been causing some issues.  I've received some
> information about the problem system, and the output from "ps -ef" is
> troubling me...
> 
> I am seeing what I think to be too many Apache child
> processes.  It may
> turn out to be normal, but I wanted to check as I'm not sure. 
>  e.g. I'm
> seeing 50+ child processes all spawned by the same user who 
> runs the BI
> app.  

This how apache 1.3 works. The parent spawns as many child processes as required to handle
the load (and subject to various directives - see MaxSpareServers for details). 50 servers
doesn't sound too many for a busy machine.

Rgds,
Owen Boyle
Disclaimer: Any disclaimer attached to this message may be ignored. 

Diese E-mail ist eine private und persönliche Kommunikation. Sie hat keinen Bezug zur Börsen-
bzw. Geschäftstätigkeit der SWX Gruppe. This e-mail is of a private and personal nature.
It is not related to the exchange or business activities of the SWX Group. Le présent e-mail
est un message privé et personnel, sans rapport avec l'activité boursière du Groupe SWX.


>I guess that this means that our BI app is ultimately causing  these 
>processes to be spawned and I wonder if there is a reason for so  many 
>children, or whether I may limit the number of children.
>  (Our app
> uses Apache and Tomcat)
> 
> To my knowledge, the Apache installation is 100% default: I
> am not aware
> of _any_ changes to httpd.conf.  The associated app server is Tomcat
> 4.1.27.
> 
> Output from "ps -ef" shows me all my expected processes, but
> also large
> sections like this:
> 
>  
> 
>  webiadm  69206 134334   0 09:10:46      -  0:00
> /opt/local/apache/bin/httpd    
>  webiadm  71234 134334   0 09:18:02      -  0:00
> /opt/local/apache/bin/httpd    
>  webiadm  71712 134334   0 07:15:54      -  0:00
> /opt/local/apache/bin/httpd    
>  webiadm  75824 134334   0 09:15:25      -  0:00
> /opt/local/apache/bin/httpd    
>  webiadm  80450 134334   0 07:49:36      -  0:00
> /opt/local/apache/bin/httpd    
>  webiadm  88650 134334   0 09:15:24      -  0:00
> /opt/local/apache/bin/httpd    
>  webiadm  92076 134334   0 09:15:25      -  0:00
> /opt/local/apache/bin/httpd    
>  webiadm  92464 134334   0 09:26:14      -  0:00
> /opt/local/apache/bin/httpd    
>  webiadm  93556 134334   0 07:11:26      -  0:00
> /opt/local/apache/bin/httpd    
>  webiadm  97104 134334   0 09:11:31      -  0:00
> /opt/local/apache/bin/httpd    
>  webiadm  98402 134334   0 09:08:41      -  0:00
> /opt/local/apache/bin/httpd    
>  webiadm 100034 134334   0 07:14:49      -  0:00
> /opt/local/apache/bin/httpd    
>  webiadm 100638 134334   0 09:33:09      -  0:00
> /opt/local/apache/bin/httpd    
>  webiadm 105378 134334   0 09:19:37      -  0:00
> /opt/local/apache/bin/httpd    
>  webiadm 109958 134334   0 09:11:30      -  0:00
> /opt/local/apache/bin/httpd    
>  webiadm 114060 134334   0 09:06:56      -  0:00
> /opt/local/apache/bin/httpd    
>  webiadm 114506 134334   0 07:11:26      -  0:00
> /opt/local/apache/bin/httpd    
>  webiadm 115422 134334   0 07:11:26      -  0:00
> /opt/local/apache/bin/httpd    
>  webiadm 119274 134334   0 09:26:13      -  0:00
> /opt/local/apache/bin/httpd    
>  webiadm 119726 134334   0 09:12:11      -  0:00
> /opt/local/apache/bin/httpd    
>  webiadm 120964 134334   0 07:31:20      -  0:00
> /opt/local/apache/bin/httpd    
>  webiadm 121692 134334   0 09:34:12      -  0:00
> /opt/local/apache/bin/httpd    
>  webiadm 122036 134334   0 09:16:41      -  0:00
> /opt/local/apache/bin/httpd    
>  webiadm 125096 134334   0 08:02:06      -  0:00
> /opt/local/apache/bin/httpd    
>  webiadm 126780 134334   0 07:14:47      -  0:00
> /opt/local/apache/bin/httpd    
>  webiadm 127810 134334   0 09:16:28      -  0:00
> /opt/local/apache/bin/httpd    
>  webiadm 128352 134334   0 07:11:26      -  0:00
> /opt/local/apache/bin/httpd    
>  webiadm 130188 134334   0 09:15:08      -  0:00
> /opt/local/apache/bin/httpd    
>  webiadm 131674 134334   0 09:23:33      -  0:00
> /opt/local/apache/bin/httpd    
>  webiadm 132574 134334   0 07:14:13      -  0:00
> /opt/local/apache/bin/httpd    
>  webiadm 133882 134334   0 07:11:26      -  0:00
> /opt/local/apache/bin/httpd
> 
> The server hosts a 24-hour application, so perhaps it is normal for so 
> many child processes (since Apache rarely gets restarted) but 
> something doesn't seem right.  I've searched at apache.org for info in 
> the FAQ section, but so far I've found nothing that explains this.
> 
> Is this, in fact, normal??  If not, is there a reason for this 
> behaviour, or is there a directive I can set to limit the max number 
> of child processes?  (e.g. threadsperchild, maxthreads - can
> these have any
> negative effect on performance?)  Do these child processes have a
> limited lifetime, and would it be possible to reduce their lifespan?
> 
> Thanks in advance,
> Dan.
> 
> 
> 	
> 
> ---------------------------------------------------------------------
> 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
> 
>

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


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


Mime
View raw message