[asterisk-bugs] [Asterisk 0018515]: [patch] Asterisk produces many zombie processes while under load.

Asterisk Bug Tracker noreply at bugs.digium.com
Wed Jan 19 14:13:26 CST 2011


A NOTE has been added to this issue. 
====================================================================== 
https://issues.asterisk.org/view.php?id=18515 
====================================================================== 
Reported By:                ernied
Assigned To:                tilghman
====================================================================== 
Project:                    Asterisk
Issue ID:                   18515
Category:                   Core/General
Reproducibility:            always
Severity:                   major
Priority:                   normal
Status:                     acknowledged
Asterisk Version:           SVN 
JIRA:                       SWP-2933 
Regression:                 No 
Reviewboard Link:            
SVN Branch (only for SVN checkouts, not tarball releases): N/A 
SVN Revision (number only!):  
Request Review:              
====================================================================== 
Date Submitted:             2010-12-21 20:26 CST
Last Modified:              2011-01-19 14:13 CST
====================================================================== 
Summary:                    [patch] Asterisk produces many zombie processes
while under load.
Description: 
Once under a non-trivial load (trivial being the 6 phones in our office
that we've been testing with for the past week, non-trivial being around a
hundred sip clients and about 7 or 8 simultaneous DAHDI calls), Asterisk
starts producing a high volume of zombie processes - say a few hundred a
minute. If left alone, this crashes the operating system within a few
hours, but not before calls start getting very flaky.


====================================================================== 

---------------------------------------------------------------------- 
 (0130727) svnbot (reporter) - 2011-01-19 14:13
 https://issues.asterisk.org/view.php?id=18515#c130727 
---------------------------------------------------------------------- 
Repository: asterisk
Revision: 302599

U   branches/1.6.2/main/app.c

------------------------------------------------------------------------
r302599 | tilghman | 2011-01-19 14:13:25 -0600 (Wed, 19 Jan 2011) | 15
lines

Kill zombies.

When we ast_safe_fork() with a non-zero argument, we're expected to reap
our
own zombies.  On a zero argument, however, the zombies are only reaped
when
there aren't any non-zero forked children alive.  At other times, we
accumulate zombies.  This code is forward ported from res_agi in 1.4, so
that
forked children are always reaped, thus preventing an accumulation of
zombie
processes.

(closes issue https://issues.asterisk.org/view.php?id=18515)
Reported by: ernied
Patches: 
      20101221__issue18515.diff.txt uploaded by tilghman (license 14)
Tested by: ernied

------------------------------------------------------------------------

http://svn.digium.com/view/asterisk?view=rev&revision=302599 

Issue History 
Date Modified    Username       Field                    Change               
====================================================================== 
2011-01-19 14:13 svnbot         Note Added: 0130727                          
======================================================================




More information about the asterisk-bugs mailing list