[Asterisk-Users] Child PID's

Luigi Rizzo rizzo at icir.org
Fri Mar 3 10:47:52 MST 2006


On Fri, Mar 03, 2006 at 11:39:49AM -0600, Kevin P. Fleming wrote:
> Matt Schulte wrote:
> > All, I'm not sure how to word this question but we're noticing a lot of
> > our asterisk boxes no longer have multiple asterisk child processes.
> > i.e. doing a 'ps ax' reveals only 1 asterisk PID when normally I'm used
> > to seeing 8+ .. There is no rhyme or reason to it, and we're using the
> > safe_asterisk script which has always worked in the past. Ast 1.2.4, zap
> > 1.2.4, naturally..
> 
> This is completely normal; if your distro is using LinuxThreads, then
> you will see multiple processes, but if it is using NPTL (as current
> distros do), then you will only see one process because the threads are
> not shown as processes.

here is where my "show threads" command would come handy :)

	http://bugs.digium.com/view.php?id=6053

*CLI> show threads 
0x8940800 autoservice_run      started at [  115] autoservice.c ast_autoservice_start()
0x8897400 do_monitor           started at [ 6877] chan_zap.c restart_monitor()
0x8897000 do_monitor           started at [ 3038] chan_skinny.c restart_monitor()
0x8931c00 accept_thread        started at [ 3223] chan_skinny.c reload_config()
0x8931800 do_monitor           started at [11168] chan_sip.c restart_monitor()
0x888f800 sound_thread         started at [ 1465] chan_oss.c store_config()
0x888f400 do_monitor           started at [ 3548] chan_mgcp.c restart_monitor()
0x87ca800 network_thread       started at [ 8327] chan_iax2.c start_network_thread()
0x87ca400 sched_thread         started at [ 8326] chan_iax2.c start_network_thread()
0x87ca000 iax2_process_thread  started at [ 8317] chan_iax2.c start_network_thread()
0x86c1c00 iax2_process_thread  started at [ 8317] chan_iax2.c start_network_thread()
0x86c1800 iax2_process_thread  started at [ 8317] chan_iax2.c start_network_thread()
0x86c1400 iax2_process_thread  started at [ 8317] chan_iax2.c start_network_thread()
0x86c1000 iax2_process_thread  started at [ 8317] chan_iax2.c start_network_thread()
0x8576c00 iax2_process_thread  started at [ 8317] chan_iax2.c start_network_thread()
0x8576800 iax2_process_thread  started at [ 8317] chan_iax2.c start_network_thread()
0x8576400 iax2_process_thread  started at [ 8317] chan_iax2.c start_network_thread()
0x8576000 iax2_process_thread  started at [ 8317] chan_iax2.c start_network_thread()
0x8229c00 iax2_process_thread  started at [ 8317] chan_iax2.c start_network_thread()
0x8228800 scan_thread          started at [  424] pbx_spool.c load_module()
0x8228400 process_precache     started at [ 2142] pbx_dundi.c start_network_thread()
0x8228000 network_thread       started at [ 2141] pbx_dundi.c start_network_thread()
0x813a800 do_parking_thread    started at [ 2052] res_features.c load_module()
0x813a400 do_devstate_changes  started at [  269] devicestate.c ast_device_state_engine_init()
0x813a000 listener             started at [  713] asterisk.c ast_makesocket()
25 threads listed.

	cheers
	luigi

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