[asterisk-users] Run-away Asterisk

Mike Lynchfield theclubvoip at gmail.com
Wed Feb 28 16:10:02 MST 2007


You could try Fast agi.. then i think master agi deamon runs from services
and replies to requests by including sub scripts.

however i do see some connect failures sometimes...



On 2/28/07, Tzafrir Cohen <tzafrir.cohen at xorcom.com> wrote:
>
> On Wed, Feb 28, 2007 at 10:56:14AM -0800, Yuan LIU wrote:
> > After testing some AGI's, I noticed several extra Asterisk processes.
>
> An agi script is run by the same user running asterisk, but is not
> "asterisk": it is a different program. What is the command name on those
> scripts?
>
> > They
> > are not zombies, but can't be killed by safe_asterisk.
>
> safe_asterisk attempts (poorly) to guard asterisk. Not really to guard
> all of its child processes.
>
> > Nor will they die
> > when CLI issues stop now.  Then I read that each AGI spawns a separate
> > Asterisk process.
>
> Huh? AGI? FastAGI?
>
> > But all my AGI calls have apparently completed
> > successfully.  So there should be no reason for them to hang there.
> >
> > Several questions:
> >
> > 1) Under what conditions will an AGI hang a process? (My test scripts
> are
> > pretty simple, almost directly derived from agi-test.agi.)
>
> An AGI may be an arbitrary subprocess. This subprocess can do basically
> everything. If it really wants to, (or if it misbehaves in the "right"
> way) it won't die.
>
> >
> > 2) How to detect run-away processes under 2.4 kernels?  In this kernel,
> > each thread clusters process space and it's very difficult to
> distinguish
> > them without killing the main process.
>
> hmm, please attach the output of:
>
> ps auxww | grep asterisk
>
> >
> > 3) Any practical way to detect them from inside Asterisk - e.g., do some
> > check after each AGI call?  All my AGISTATUS reports success.  I could
> use
> > System() but isn't that cumbersome?
>
> Write/use better code, I guess.
>
> --
>                Tzafrir Cohen
> icq#16849755                    jabber:tzafrir at jabber.org
> +972-50-7952406           mailto:tzafrir.cohen at xorcom.com
> http://www.xorcom.com  iax:guest at local.xorcom.com/tzafrir
> _______________________________________________
> --Bandwidth and Colocation provided by Easynews.com --
>
> asterisk-users mailing list
> To UNSUBSCRIBE or update options visit:
>    http://lists.digium.com/mailman/listinfo/asterisk-users
>



-- 
Mike
Sales Manager
http://www.voicemeup.com
Making it happen
1.877.807.VOIP (8647)
1.514.312.7030
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.digium.com/pipermail/asterisk-users/attachments/20070228/e8903e1f/attachment.htm


More information about the asterisk-users mailing list