Hello, Using asterisk 1.8.24 on CentOS 6.4 I notice that the asterisk process is using between 105 en 110 % CPU : PID USER PR NI VIRT RES SHR S %CPU %MEM TIME+ COMMAND 1765 root 20 0 2508m 102m 8864 S 105.8 2.7 102:11.55 asterisk 2682 mysql 20 0 627m 29m 6204 S 0.7 0.8 1:59.51 mysqld 1 root 20 0 19228 1508 1220 S 0.0 0.0 0:00.75 init What can be causing such a high load of the asterisk proces ?? There are about 35 calls with G711a codec, no translation. Kind regards, Jonas. -------------- next part -------------- An HTML attachment was scrubbed... URL: <http://lists.digium.com/pipermail/asterisk-users/attachments/20131127/aae2d592/attachment.html>
On 27-11-13 12:26, Jonas Kellens wrote:> Hello, > > Using asterisk 1.8.24 on CentOS 6.4 > > I notice that the asterisk process is using between 105 en 110 % CPU : > > > PID USER PR NI VIRT RES SHR S %CPU %MEM TIME+ COMMAND > 1765 root 20 0 2508m 102m 8864 S 105.8 2.7 102:11.55 asterisk > 2682 mysql 20 0 627m 29m 6204 S 0.7 0.8 1:59.51 mysqld > 1 root 20 0 19228 1508 1220 S 0.0 0.0 0:00.75 init > > > What can be causing such a high load of the asterisk proces ?? > > There are about 35 calls with G711a codec, no translation. > > > > Kind regards, > Jonas.I want to add some more information. Maybe someone knows how to help me with this information : sip*CLI> core show threads 0x7f98f87fd700 pbx_thread started at [ 5597] pbx.c ast_pbx_start() 0x7f98f8ae5700 pbx_thread started at [ 5597] pbx.c ast_pbx_start() 0x7f98f9229700 pbx_thread started at [ 5597] pbx.c ast_pbx_start() 0x7f98f9609700 netconsole started at [ 1423] asterisk.c listener() 0x7f98f8971700 pbx_thread started at [ 5597] pbx.c ast_pbx_start() 0x7f98f8ec5700 pbx_thread started at [ 5597] pbx.c ast_pbx_start() 0x7f98f8e49700 pbx_thread started at [ 5597] pbx.c ast_pbx_start() 0x7f98f9a65700 pbx_thread started at [ 5597] pbx.c ast_pbx_start() 0x7f98f97f9700 pbx_thread started at [ 5597] pbx.c ast_pbx_start() 0x7f98f8a69700 pbx_thread started at [ 5597] pbx.c ast_pbx_start() 0x7f98f8dcd700 pbx_thread started at [ 5597] pbx.c ast_pbx_start() 0x7f98f8d51700 pbx_thread started at [ 5597] pbx.c ast_pbx_start() 0x7f98f9ae1700 shaun_of_the_dead started at [ 2141] app.c ast_safe_fork() 0x7f98f9b5d700 inotify_daemon started at [ 334] stdtime/localtime.c add_notify() 0x7f98f9def700 autoservice_run started at [ 219] autoservice.c ast_autoservice_start() 0x7f98f9ee7700 monitor_sig_flags started at [ 4097] asterisk.c main() 0x7f98f9f63700 tps_processing_function started at [ 468] taskprocessor.c ast_taskprocessor_get() 0x7f98f9fdf700 cleanup started at [ 414] pbx_realtime.c load_module() 0x7f98fa05b700 scan_thread started at [ 885] pbx_spool.c load_module() 0x7f98fa0d7700 do_monitor started at [ 4684] chan_unistim.c restart_monitor() 0x7f98fa153700 tps_processing_function started at [ 468] taskprocessor.c ast_taskprocessor_get() 0x7f98fa1cf700 process_clearcache started at [ 2265] pbx_dundi.c start_network_thread() 0x7f98fa2c7700 network_thread started at [ 2263] pbx_dundi.c start_network_thread() 0x7f98fa24b700 process_precache started at [ 2264] pbx_dundi.c start_network_thread() 0x7f98fa343700 do_monitor started at [ 1167] chan_phone.c restart_monitor() 0x7f98fa3bf700 lock_broker started at [ 509] func_lock.c load_module() 0x7f98fa43b700 network_thread started at [12310] chan_iax2.c start_network_thread() 0x7f98fa4b7700 iax2_process_thread started at [12288] chan_iax2.c start_network_thread() 0x7f98fa533700 iax2_process_thread started at [12288] chan_iax2.c start_network_thread() 0x7f98fa5af700 iax2_process_thread started at [12288] chan_iax2.c start_network_thread() 0x7f98fa62b700 iax2_process_thread started at [12288] chan_iax2.c start_network_thread() 0x7f98fa6a7700 iax2_process_thread started at [12288] chan_iax2.c start_network_thread() 0x7f98fa723700 iax2_process_thread started at [12288] chan_iax2.c start_network_thread() 0x7f98fa79f700 iax2_process_thread started at [12288] chan_iax2.c start_network_thread() 0x7f98fa81b700 iax2_process_thread started at [12288] chan_iax2.c start_network_thread() 0x7f98fa897700 iax2_process_thread started at [12288] chan_iax2.c start_network_thread() 0x7f98fa913700 iax2_process_thread started at [12288] chan_iax2.c start_network_thread() 0x7f98fa98f700 sched_run started at [ 186] sched.c ast_sched_thread_create() 0x7f98faa0b700 tps_processing_function started at [ 468] taskprocessor.c ast_taskprocessor_get() 0x7f98faa87700 do_monitor started at [ 3897] chan_mgcp.c restart_monitor() 0x7f98fab03700 do_monitor started at [ 6647] chan_skinny.c restart_monitor() 0x7f98fab7f700 accept_thread started at [ 7358] chan_skinny.c config_load() 0x7f98fabfb700 do_monitor started at [12011] chan_dahdi.c restart_monitor() 0x7f98fac77700 do_monitor started at [26669] chan_sip.c restart_monitor() 0x7f992c09a700 do_timing started at [ 490] res_timing_pthread.c init_timing_thread() 0x7f992e55f700 do_refresh started at [ 1766] res_calendar.c load_module() 0x7f992f84b700 sched_run started at [ 186] sched.c ast_sched_thread_create() 0x7f992f8c7700 tps_processing_function started at [ 468] taskprocessor.c ast_taskprocessor_get() 0x7f992f943700 db_sync_thread started at [ 883] db.c astdb_init() 0x7f993c082700 do_parking_thread started at [ 8304] features.c ast_features_init() 0x7f993c0fe700 tps_processing_function started at [ 468] taskprocessor.c ast_taskprocessor_get() 0x7f993c17a700 do_devstate_changes started at [ 750] devicestate.c ast_device_state_engine_init() 0x7f993f17b700 logger_thread started at [ 1143] logger.c init_logger() 0x7f993f1f7700 listener started at [ 1483] asterisk.c ast_makesocket() 0x7f993f273700 tps_processing_function started at [ 468] taskprocessor.c ast_taskprocessor_get() 55 threads listed. -------------- next part -------------- An HTML attachment was scrubbed... URL: <http://lists.digium.com/pipermail/asterisk-users/attachments/20131127/5c34f283/attachment.html>
Are you transcoding? What is your server spec? Regards Andrew Colin-mobile Vsave(PTY)Ltd -------- Original message -------- From: Jonas Kellens <jonas.kellens at telenet.be> Date:27/11/2013 13:48 (GMT+02:00) To: Asterisk Users Mailing List - Non-Commercial Discussion <asterisk-users at lists.digium.com> Subject: Re: [asterisk-users] Asterisk uses 105% CPU On 27-11-13 12:26, Jonas Kellens wrote: Hello, Using asterisk 1.8.24 on CentOS 6.4 I notice that the asterisk process is using between 105 en 110 % CPU : ? PID USER????? PR? NI? VIRT? RES? SHR S %CPU %MEM??? TIME+? COMMAND????????????????????? ?1765 root????? 20?? 0 2508m 102m 8864 S 105.8? 2.7 102:11.55 asterisk???????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????? ?2682 mysql???? 20?? 0? 627m? 29m 6204 S? 0.7? 0.8?? 1:59.51 mysqld??????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????? ??? 1 root????? 20?? 0 19228 1508 1220 S? 0.0? 0.0?? 0:00.75 init What can be causing such a high load of the asterisk proces ?? There are about 35 calls with G711a codec, no translation. Kind regards, Jonas. I want to add some more information. Maybe someone knows how to help me with this information : sip*CLI> core show threads 0x7f98f87fd700 pbx_thread?????????? started at [ 5597] pbx.c ast_pbx_start() 0x7f98f8ae5700 pbx_thread?????????? started at [ 5597] pbx.c ast_pbx_start() 0x7f98f9229700 pbx_thread?????????? started at [ 5597] pbx.c ast_pbx_start() 0x7f98f9609700 netconsole?????????? started at [ 1423] asterisk.c listener() 0x7f98f8971700 pbx_thread?????????? started at [ 5597] pbx.c ast_pbx_start() 0x7f98f8ec5700 pbx_thread?????????? started at [ 5597] pbx.c ast_pbx_start() 0x7f98f8e49700 pbx_thread?????????? started at [ 5597] pbx.c ast_pbx_start() 0x7f98f9a65700 pbx_thread?????????? started at [ 5597] pbx.c ast_pbx_start() 0x7f98f97f9700 pbx_thread?????????? started at [ 5597] pbx.c ast_pbx_start() 0x7f98f8a69700 pbx_thread?????????? started at [ 5597] pbx.c ast_pbx_start() 0x7f98f8dcd700 pbx_thread?????????? started at [ 5597] pbx.c ast_pbx_start() 0x7f98f8d51700 pbx_thread?????????? started at [ 5597] pbx.c ast_pbx_start() 0x7f98f9ae1700 shaun_of_the_dead??? started at [ 2141] app.c ast_safe_fork() 0x7f98f9b5d700 inotify_daemon?????? started at [? 334] stdtime/localtime.c add_notify() 0x7f98f9def700 autoservice_run????? started at [? 219] autoservice.c ast_autoservice_start() 0x7f98f9ee7700 monitor_sig_flags??? started at [ 4097] asterisk.c main() 0x7f98f9f63700 tps_processing_function started at [? 468] taskprocessor.c ast_taskprocessor_get() 0x7f98f9fdf700 cleanup????????????? started at [? 414] pbx_realtime.c load_module() 0x7f98fa05b700 scan_thread????????? started at [? 885] pbx_spool.c load_module() 0x7f98fa0d7700 do_monitor?????????? started at [ 4684] chan_unistim.c restart_monitor() 0x7f98fa153700 tps_processing_function started at [? 468] taskprocessor.c ast_taskprocessor_get() 0x7f98fa1cf700 process_clearcache?? started at [ 2265] pbx_dundi.c start_network_thread() 0x7f98fa2c7700 network_thread?????? started at [ 2263] pbx_dundi.c start_network_thread() 0x7f98fa24b700 process_precache???? started at [ 2264] pbx_dundi.c start_network_thread() 0x7f98fa343700 do_monitor?????????? started at [ 1167] chan_phone.c restart_monitor() 0x7f98fa3bf700 lock_broker????????? started at [? 509] func_lock.c load_module() 0x7f98fa43b700 network_thread?????? started at [12310] chan_iax2.c start_network_thread() 0x7f98fa4b7700 iax2_process_thread? started at [12288] chan_iax2.c start_network_thread() 0x7f98fa533700 iax2_process_thread? started at [12288] chan_iax2.c start_network_thread() 0x7f98fa5af700 iax2_process_thread? started at [12288] chan_iax2.c start_network_thread() 0x7f98fa62b700 iax2_process_thread? started at [12288] chan_iax2.c start_network_thread() 0x7f98fa6a7700 iax2_process_thread? started at [12288] chan_iax2.c start_network_thread() 0x7f98fa723700 iax2_process_thread? started at [12288] chan_iax2.c start_network_thread() 0x7f98fa79f700 iax2_process_thread? started at [12288] chan_iax2.c start_network_thread() 0x7f98fa81b700 iax2_process_thread? started at [12288] chan_iax2.c start_network_thread() 0x7f98fa897700 iax2_process_thread? started at [12288] chan_iax2.c start_network_thread() 0x7f98fa913700 iax2_process_thread? started at [12288] chan_iax2.c start_network_thread() 0x7f98fa98f700 sched_run??????????? started at [? 186] sched.c ast_sched_thread_create() 0x7f98faa0b700 tps_processing_function started at [? 468] taskprocessor.c ast_taskprocessor_get() 0x7f98faa87700 do_monitor?????????? started at [ 3897] chan_mgcp.c restart_monitor() 0x7f98fab03700 do_monitor?????????? started at [ 6647] chan_skinny.c restart_monitor() 0x7f98fab7f700 accept_thread??????? started at [ 7358] chan_skinny.c config_load() 0x7f98fabfb700 do_monitor?????????? started at [12011] chan_dahdi.c restart_monitor() 0x7f98fac77700 do_monitor?????????? started at [26669] chan_sip.c restart_monitor() 0x7f992c09a700 do_timing??????????? started at [? 490] res_timing_pthread.c init_timing_thread() 0x7f992e55f700 do_refresh?????????? started at [ 1766] res_calendar.c load_module() 0x7f992f84b700 sched_run??????????? started at [? 186] sched.c ast_sched_thread_create() 0x7f992f8c7700 tps_processing_function started at [? 468] taskprocessor.c ast_taskprocessor_get() 0x7f992f943700 db_sync_thread?????? started at [? 883] db.c astdb_init() 0x7f993c082700 do_parking_thread??? started at [ 8304] features.c ast_features_init() 0x7f993c0fe700 tps_processing_function started at [? 468] taskprocessor.c ast_taskprocessor_get() 0x7f993c17a700 do_devstate_changes? started at [? 750] devicestate.c ast_device_state_engine_init() 0x7f993f17b700 logger_thread??????? started at [ 1143] logger.c init_logger() 0x7f993f1f7700 listener???????????? started at [ 1483] asterisk.c ast_makesocket() 0x7f993f273700 tps_processing_function started at [? 468] taskprocessor.c ast_taskprocessor_get() 55 threads listed. -------------- next part -------------- An HTML attachment was scrubbed... URL: <http://lists.digium.com/pipermail/asterisk-users/attachments/20131127/14b3ab69/attachment.html>