asterisk2billing.org
http://forum.asterisk2billing.org/

Asterisk generating zombies process
http://forum.asterisk2billing.org/viewtopic.php?f=23&t=10191
Page 1 of 1

Author:  jhperezb [ Mon Jan 21, 2013 3:26 pm ]
Post subject:  Asterisk generating zombies process

Hello everybody,

Since a few months I have a lot of zombies process in my Asterisk server and I can't determine what is causing this abnormally. After some hours the system kill the process, but it's appearing again and again.

To find the process I run pstree -p command and this is the output:

init(1)-+-acpid(2994)
|-amavisd-new(2812)-+-amavisd-new(763)
| `-amavisd-new(881)
|-apache2(19143)-+-apache2(19144)
| |-apache2(19146)
| |-apache2(19147)
| |-apache2(19148)
| |-apache2(19662)
| |-apache2(27235)
| |-apache2(27239)
| |-apache2(27240)
| |-apache2(27241)
| `-apache2(1306)
|-asterisk(3304)-+-a2billing.php(887)
| |-a2billing.php(983)
| |-a2billing.php(990)
| |-a2billing.php(1060)
| |-a2billing.php(1163)
| |-a2billing.php(1369)
| |-a2billing.php(1411)
| |-a2billing.php(1440)
| |-a2billing.php(1452)
| |-a2billing.php(1494)
| |-a2billing.php(1552)
| |-a2billing.php(1559)
| |-a2billing.php(1696)
| |-a2billing.php(1860)
| |-a2billing.php(1892)
| |-a2billing.php(1901)
| |-a2billing.php(2108)
| |-a2billing.php(2121)
| |-a2billing.php(2628)
| |-a2billing.php(2747)
| |-a2billing.php(3227)
| |-a2billing.php(3522)
| |-a2billing.php(3548)
| |-a2billing.php(3579)
| |-a2billing.php(3644)
| |-a2billing.php(4102)
| |-a2billing.php(4128)
| |-a2billing.php(4319)
| |-a2billing.php(4322)
| |-a2billing.php(4446)
| |-a2billing.php(4456)
| |-a2billing.php(5002)
| |-a2billing.php(5053)
| |-a2billing.php(5132)
| |-a2billing.php(5178)
| |-a2billing.php(5707)
| |-a2billing.php(5987)
| |-a2billing.php(6051)
| |-a2billing.php(6286)
| |-a2billing.php(6332)
| |-a2billing.php(6396)
| |-a2billing.php(6399)
| |-a2billing.php(6426)
| |-a2billing.php(6446)
| |-a2billing.php(6521)
| |-a2billing.php(6525)
| |-a2billing.php(6527)
| |-a2billing.php(6534)
| |-a2billing.php(6538)
| |-{asterisk}(3314)
| |-{asterisk}(3316)
| |-{asterisk}(3317)
| |-{asterisk}(3343)
| |-{asterisk}(3353)
| |-{asterisk}(3354)
| |-{asterisk}(3384)
| |-{asterisk}(3385)
| |-{asterisk}(3386)
| |-{asterisk}(3387)
| |-{asterisk}(3388)
| |-{asterisk}(3389)
| |-{asterisk}(3390)
| |-{asterisk}(3391)
| |-{asterisk}(3392)
| |-{asterisk}(3393)
| |-{asterisk}(3394)
| |-{asterisk}(3395)
| |-{asterisk}(3396)
| |-{asterisk}(3397)
| |-{asterisk}(3398)
| |-{asterisk}(3408)
| |-{asterisk}(3409)
| |-{asterisk}(3410)
| |-{asterisk}(3411)
| |-{asterisk}(3412)
| |-{asterisk}(3416)
| |-{asterisk}(3417)
| |-{asterisk}(3418)
| |-{asterisk}(4648)
| |-{asterisk}(5703)
| |-{asterisk}(6049)
| |-{asterisk}(6285)
| |-{asterisk}(6393)
| |-{asterisk}(6398)
| |-{asterisk}(6405)
| |-{asterisk}(6425)
| |-{asterisk}(6510)
| |-{asterisk}(6520)
| |-{asterisk}(6523)
| |-{asterisk}(6524)
| |-{asterisk}(6529)
| |-{asterisk}(6533)
| `-{asterisk}(6537)
|-atd(3318)
|-cron(3325)
|-events/0(8)
|-events/1(9)
|-freshclam(3087)
|-getty(3368)
|-getty(3369)
|-getty(3370)
|-getty(3371)
|-getty(3372)
|-getty(3373)
|-khelper(10)
|-klogd(2781)
|-ksoftirqd/0(3)
|-ksoftirqd/1(6)
|-kthread(11)-+-aio/0(200)
| |-aio/1(201)
| |-ata/0(773)
| |-ata/1(774)
| |-ata_aux(775)
| |-kacpid(18)
| |-kblockd/0(16)
| |-kblockd/1(17)
| |-khubd(145)
| |-kjournald(1205)
| |-kmirrord(2008)
| |-kpsmoused(1818)
| |-kseriod(147)
| |-kswapd0(199)
| |-md0_raid1(1128)
| |-md1_raid1(1124)
| |-pdflush(197)
| |-pdflush(198)
| |-scsi_eh_0(844)
| `-scsi_eh_1(845)
|-master(3161)-+-bounce(6508)
| |-cleanup(6501)
| |-local(6506)
| |-pickup(3811)
| |-qmgr(3176)
| |-smtp(6503)
| |-smtpd(6505)
| `-trivial-rewrite(6502)
|-mdadm(3229)
|-migration/0(2)
|-migration/1(5)
|-mysqld_safe(7120)-+-logger(7158)
| `-mysqld(7157)-+-{mysqld}(7159)
| |-{mysqld}(7160)
| |-{mysqld}(7161)
| |-{mysqld}(7162)
| |-{mysqld}(7164)
| |-{mysqld}(7165)
| |-{mysqld}(7166)
| |-{mysqld}(7167)
| |-{mysqld}(7170)
| `-{mysqld}(7274)
|-nagios(3275)
|-postgres(3292)-+-postgres(3341)
| |-postgres(3404)
| |-postgres(3405)
| |-postgres(3406)
| |-postgres(3407)
| |-postgres(5708)
| |-postgres(6052)
| |-postgres(6287)
| |-postgres(6397)
| |-postgres(6400)
| |-postgres(6427)
| |-postgres(6522)
| |-postgres(6526)
| |-postgres(6528)
| |-postgres(6535)
| `-postgres(6539)
|-saslauthd(3180)-+-saslauthd(3182)
| |-saslauthd(3183)
| |-saslauthd(3184)
| `-saslauthd(3185)
|-sshd(3195)---sshd(6227)---sshd(6230)---bash(6231)---su(6380)---bash(6381)---pstree(6541)
|-syslogd(2775)
|-udevd(1386)
|-watchdog/0(4)
`-watchdog/1(7)


Then I run

ps aux | awk '{ print $8 " " $2 }' | grep -w Z

to get what pid zombies process are active:

Z 887
Z 983
Z 990
Z 1060
Z 1163
Z 1369
Z 1411
Z 1440
Z 1452
Z 1494
Z 1552
Z 1559
Z 1696
Z 1860
Z 1892
Z 1901
Z 2108
Z 2121
Z 2628
Z 2747
Z 3227
Z 3522
Z 3548
Z 3579
Z 3644
Z 4102
Z 4128
Z 4319
Z 4322
Z 4446
Z 4456
Z 5002
Z 5053
Z 5132
Z 5178
Z 5987
Z 6332
Z 6446

With this information I conclude that the process a2billing.php are related with the zombies process.

Anybody can help me to find the exact issue that is causing this?

I have Asterisk 1.4.22 and A2billing 1.3.4, on Debian.

Thanks!
Hernan

Author:  jhperezb [ Tue Jun 25, 2013 2:42 pm ]
Post subject:  Re: Asterisk generating zombies process

I have the same problem with Asterisk 1.4.22 and A2billing 1.3.4.
Any clue to find out?
Thanks,
Hernan

Page 1 of 1 All times are UTC
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group
http://www.phpbb.com/