[Asterisk-Users] multiple asterisk process ?

Dave Cotton dcotton at linuxautrement.com
Mon Apr 17 10:18:11 MST 2006


On Mon, 2006-04-17 at 19:12 +0200, Paul Hewlett wrote:

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

Are you sure?

root      2532  0.0  0.2   2532   620 ?        S    17:22
0:00 /bin/sh /usr/sbin/safe_asterisk
root      2539  0.0  2.8  17716  7316 ?        S    17:22   0:00
asterisk -n -vvvg -c
root      2542  0.0  2.8  17716  7316 ?        S    17:22   0:00
asterisk -n -vvvg -c
root      2544  0.0  2.8  17716  7316 ?        S    17:22   0:00
asterisk -n -vvvg -c
root      2545  0.0  2.8  17716  7316 ?        S    17:22   0:00
asterisk -n -vvvg -c
root      2546  0.0  2.8  17716  7316 ?        S    17:22   0:00
asterisk -n -vvvg -c
root      2547  0.0  2.8  17716  7316 ?        S    17:22   0:00
asterisk -n -vvvg -c
root      2548  0.0  2.8  17716  7316 ?        S    17:22   0:00
asterisk -n -vvvg -c
root      2549  0.0  2.8  17716  7316 ?        S    17:22   0:00
asterisk -n -vvvg -c
root      2550  0.0  2.8  17716  7316 ?        S    17:22   0:00
asterisk -n -vvvg -c
root      2551  0.0  2.8  17716  7316 ?        S    17:22   0:00
asterisk -n -vvvg -c
root      2552  0.0  2.8  17716  7316 ?        S    17:22   0:00
asterisk -n -vvvg -c
root      2553  0.0  2.8  17716  7316 ?        S    17:22   0:00
asterisk -n -vvvg -c
root      2554  0.0  2.8  17716  7316 ?        S    17:22   0:00
asterisk -n -vvvg -c
root      2555  0.0  2.8  17716  7316 ?        S    17:22   0:00
asterisk -n -vvvg -c
root      2556  0.0  2.8  17716  7316 ?        S    17:22   0:00
asterisk -n -vvvg -c
root      2557  0.0  2.8  17716  7316 ?        S    17:22   0:00
asterisk -n -vvvg -c
root      2558  0.0  2.8  17716  7316 ?        S    17:22   0:00
asterisk -n -vvvg -c
root      2559  0.0  2.8  17716  7316 ?        S    17:22   0:00
asterisk -n -vvvg -c
root      2560  0.0  2.8  17716  7316 ?        S    17:22   0:00
asterisk -n -vvvg -c
root      2561  0.0  2.8  17716  7316 ?        S    17:22   0:00
asterisk -n -vvvg -c
root      2562  0.0  2.8  17716  7316 ?        S    17:22   0:00
asterisk -n -vvvg -c
root      2563  0.0  2.8  17716  7316 ?        S    17:22   0:00
asterisk -n -vvvg -c
root      2564  0.0  2.8  17716  7316 ?        S    17:22   0:01
asterisk -n -vvvg -c
root      2565  0.0  2.8  17716  7316 ?        S    17:22   0:00
asterisk -n -vvvg -c
root      2566  0.0  2.8  17716  7316 ?        S    17:22   0:00
asterisk -n -vvvg -c
root      2567  0.0  2.8  17716  7316 ?        S    17:22   0:00
asterisk -n -vvvg -c

With NPTL 2.3.6

If that is the case * is totally hosed, no?

-- 
Dave Cotton <dcotton at linuxautrement.com>




More information about the asterisk-users mailing list