[Asterisk-Users] multiple asterisk process ?

Paul Hewlett paul at cottonpickinminds.co.za
Mon Apr 17 10:12:20 MST 2006


On Monday 17 April 2006 16:03, Moises Silva wrote:
> Asterisk is a multithreaded system. I have not in mind how many
> threads open and where. But ie, if you have enabled pbx_spool.so to
> generate calls from files, that module launch its own thread to
> monitor the calls directory, MOH launch other thread, every channel
> has its own thread, the CLI has its own thread, to listen for calls in
> SIP, IAX, you need specific threads etc, etc, i would say what you see
> is normal.
>
> Regards

  This is incorrect. Asterisk is a multithreaded system but how the threads 
are handled by the OS  depends on the version of threads that is being used.
   For Linuxthreads (kernel 2.4), one would see a separate entry for each 
thread when executing 'ps aux'. For NPTL (linux 2.6) one does not see each 
thread as a separate entry. So the OP must tell us which kernel version he is 
using. Alternatively type

             getconf  GNU_LIBPTHREAD_VERSION

as root. For NPTL u should get something like

             NPTL 2.3.5

or suchlike.

If you are using NPTL and there is more than one entry for asterisk, then 
asterisk has spawned an extra process for some reason. If extra processes 
keep appearing then I would say that he has a bug or error somewhere and 
asterisk is  respawning that separate process.

Paul Hewlett

>
> On 4/17/06, Lee Archer <lee.archer at pentagon-systems.com> wrote:
> > I had this and no one could really answer it.  I only get it 1 of my
> > systems.  I've tried a few things, from removing zaptel watchdog - since
> > I contacted the telco and they said I had a hung channel, to rebuilding
> > * with different options.  Are you configuring * manually or using a
> > GUI?
> >
> > Lee
> >
> > -----Original Message-----
> > From: asterisk-users-bounces at lists.digium.com
> > [mailto:asterisk-users-bounces at lists.digium.com] On Behalf Of stevanus
> > Sent: 17 April 2006 10:10
> > To: Asterisk Users Mailing List - Non-Commercial Discussion
> > Subject: [Asterisk-Users] multiple asterisk process ?
> >
> > Hi,
> >
> > Why does my asterisk keep forking instances at random times everyday?
> >
> > When I do ps aux, I got this:
> >
> > asterisk 13068  2.2  5.1 25924 12276 ?       Sl   06:00  13:18 asterisk
> > -vvvg -c
> > asterisk 23558  0.0  5.1 26040 12248 ?       S    09:57   0:00 asterisk
> > -vvvg -c
> > asterisk 29832  0.0  5.1 25924 12208 ?       S    11:48   0:00 asterisk
> > -vvvg -c
> > asterisk 31872  0.0  5.1 25924 12208 ?       S    12:32   0:00 asterisk
> > -vvvg -c
> > asterisk  2520  0.0  5.1 25928 12228 ?       S    13:21   0:00 asterisk
> > -vvvg -c
> > asterisk  4638  0.0  5.1 25924 12232 ?       S    13:50   0:00 asterisk
> > -vvvg -c
> > asterisk  5126  0.0  5.1 25932 12240 ?       S    13:57   0:00 asterisk
> > -vvvg -c
> > asterisk  6487  0.0  5.1 26016 12336 ?       S    14:23   0:00 asterisk
> > -vvvg -c
> >
> > Is this normal?
> > Does anyone experience this?
> >
> > Thanks..
> >
> > Regards,
> >
> > Stevanus
> > _______________________________________________
> > --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
> >
> >
> > ###########################################
> >
> > This message has been scanned by F-Secure Anti-Virus for Microsoft
> > Exchange. For more information, connect to http://www.f-secure.com/
> > _______________________________________________
> > --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
>
> --
> "Su nombre es GNU/Linux, no solamente Linux, mas info en
> http://www.gnu.org" _______________________________________________
> --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



More information about the asterisk-users mailing list