[asterisk-bugs] [JIRA] (ASTERISK-27608) Asterisk threads consume cpu usage waiting on pj_ioqueue_poll
Cristian Paul Peñaranda Rojas (JIRA)
noreply at issues.asterisk.org
Mon Jan 22 12:10:50 CST 2018
[ https://issues.asterisk.org/jira/browse/ASTERISK-27608?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=241719#comment-241719 ]
Cristian Paul Peñaranda Rojas commented on ASTERISK-27608:
----------------------------------------------------------
Not usig chan_pjsip, only chap_sip, not sure if there are more of then but there are a pile of threads just doing nanosleep as the one i pasted for opening the bug, and they exponentially keep growing.
Ass requested:
asterisk -rx "core show threads"
0x7fe631733700 30546 netconsole started at [ 1739] asterisk.c listener()
0x7fe6622b7700 30540 bridge_channel_ind_thread started at [ 1874] bridge.c bridge_impart_internal()
0x7fe6b835d700 30454 worker_start started at [ 1079] threadpool.c worker_thread_start()
0x7fe6317af700 30434 pbx_thread started at [ 4634] pbx.c ast_pbx_start()
0x7fe6b8455700 30245 pbx_thread started at [ 4634] pbx.c ast_pbx_start()
0x7fe6621bf700 30240 pbx_thread started at [ 4634] pbx.c ast_pbx_start()
0x7fe6b84d1700 30146 worker_start started at [ 1079] threadpool.c worker_thread_start()
0x7fe6b7263700 30144 worker_start started at [ 1079] threadpool.c worker_thread_start()
0x7fe662333700 30029 worker_start started at [ 1079] threadpool.c worker_thread_start()
0x7fe6b49a7700 29613 worker_start started at [ 1079] threadpool.c worker_thread_start()
0x7fe6b4b1b700 28499 handle_tcptls_connection started at [ 854] tcptls.c ast_tcptls_server_root()
0x7fe6b71e7700 24504 handle_tcptls_connection started at [ 854] tcptls.c ast_tcptls_server_root()
0x7fe6b5e81700 21964 handle_tcptls_connection started at [ 854] tcptls.c ast_tcptls_server_root()
0x7fe6b4c8f700 21903 handle_tcptls_connection started at [ 854] tcptls.c ast_tcptls_server_root()
0x7fe6b6872700 21856 handle_tcptls_connection started at [ 854] tcptls.c ast_tcptls_server_root()
0x7fe6b854d700 21807 handle_tcptls_connection started at [ 854] tcptls.c ast_tcptls_server_root()
0x7fe6b85c9700 15265 handle_tcptls_connection started at [ 854] tcptls.c ast_tcptls_server_root()
0x7fe6b86c1700 15263 default_tps_processing_function started at [ 202] taskprocessor.c default_listener_start()
0x7fe6b873d700 15262 default_tps_processing_function started at [ 202] taskprocessor.c default_listener_start()
0x7fe6b8645700 15264 monitor_sig_flags started at [ 4812] asterisk.c asterisk_daemon()
0x7fe6b87b9700 15261 scan_thread started at [ 954] pbx_spool.c load_module()
0x7fe6b8835700 15260 default_tps_processing_function started at [ 202] taskprocessor.c default_listener_start()
0x7fe6b88b1700 15259 default_tps_processing_function started at [ 202] taskprocessor.c default_listener_start()
0x7fe6d80ac700 15258 lock_broker started at [ 524] func_lock.c load_module()
0x7fe700089700 15256 default_tps_processing_function started at [ 202] taskprocessor.c default_listener_start()
0x7fe6d8128700 15257 default_tps_processing_function started at [ 202] taskprocessor.c default_listener_start()
0x7fe700105700 15255 do_monitor started at [29687] chan_sip.c restart_monitor()
0x7fe700181700 15254 default_tps_processing_function started at [ 202] taskprocessor.c default_listener_start()
0x7fe7001fd700 15252 sched_run started at [ 217] sched.c ast_sched_start_thread()
0x7fe703fff700 15250 default_tps_processing_function started at [ 202] taskprocessor.c default_listener_start()
0x7fe71c0c2700 15249 sched_run started at [ 217] sched.c ast_sched_start_thread()
0x7fe71c13e700 15248 default_tps_processing_function started at [ 202] taskprocessor.c default_listener_start()
0x7fe71c1ba700 15247 default_tps_processing_function started at [ 202] taskprocessor.c default_listener_start()
0x7fe71c236700 15246 default_tps_processing_function started at [ 202] taskprocessor.c default_listener_start()
0x7fe71c2b2700 15245 default_tps_processing_function started at [ 202] taskprocessor.c default_listener_start()
0x7fe71c32e700 15244 desc->accept_fn started at [ 1268] tcptls.c ast_tcptls_server_start()
0x7fe71c3aa700 15243 desc->accept_fn started at [ 1268] tcptls.c ast_tcptls_server_start()
0x7fe71c426700 15242 do_devstate_changes started at [ 646] devicestate.c ast_device_state_engine_init()
0x7fe71c4a2700 15241 bridge_manager_thread started at [ 4910] bridge.c bridge_manager_create()
0x7fe71c51e700 15240 default_tps_processing_function started at [ 202] taskprocessor.c default_listener_start()
0x7fe71c59a700 15239 default_tps_processing_function started at [ 202] taskprocessor.c default_listener_start()
0x7fe71c616700 15238 logger_thread started at [ 1705] logger.c init_logger()
0x7fe71c70e700 15236 listener started at [ 1799] asterisk.c ast_makesocket()
0x7fe720e18700 15231 default_tps_processing_function started at [ 202] taskprocessor.c default_listener_start()
0x7fe720e94700 15230 default_tps_processing_function started at [ 202] taskprocessor.c default_listener_start()
0x7fe720f10700 15229 db_sync_thread started at [ 1022] db.c astdb_init()
46 threads listed.
asterisk -rx "core show taskprocessors"
Processor Processed In Queue Max Depth Low water High water
app_voicemail 0 0 0 450 500
ast_msg_queue 0 0 0 450 500
CCSS_core 0 0 0 450 500
Sorcery 0 0 0 450 500
Sorcery-control 1 0 1 450 500
sorcery/bucket-00000000 0 0 0 450 500
sorcery/file-00000001 0 0 0 450 500
stasis-core 170377 0 16 450 500
stasis-core-control 342555 0 55 450 500
subm:ast_bridge_topic_all-cached-0000000a 6294 0 9 450 500
subm:ast_channel_topic_all-0000000e 93026 0 35 450 500
subm:ast_channel_topic_all-cached-0000000b 130629 0 49 450 500
subm:ast_device_state_topic-00000002 13045 0 6 450 500
subm:ast_device_state_topic-00000004 13044 0 6 450 500
subm:ast_device_state_topic-0000000d 13023 0 102 450 500
subm:ast_presence_state_topic_all-00000005 1 0 1 450 500
subm:ast_security-0000000c 1076 0 1 450 500
subm:ast_system-00000006 245 0 29 450 500
subm:ast_system-00000007 244 0 26 450 500
subm:cdr_engine-00000003 136924 0 58 4500 5000
subp:ast_bridge_topic_all-000002a3 16 0 3 450 500
subp:ast_bridge_topic_all-000002a5 8 0 3 450 500
subp:ast_channel_topic_all-000002a4 313 0 6 450 500
subp:ast_channel_topic_all-000002a6 9 0 1 450 500
subp:SIP/0000000057-00000013 11820 0 20 450 500
subp:SIP/0000000058-0000006c 7892 0 20 450 500
subp:SIP/0000000059-00000012 10402 0 4 450 500
subp:SIP/0000000060-00000014 3392 0 5 450 500
subp:SIP/0000000061-0000000f 11757 0 20 450 500
subp:SIP/0000000062-00000011 12012 0 17 450 500
subp:SIP/0000000063-0000006b 2 0 2 450 500
subp:SIP/0000000064-00000010 13465 0 20 450 500
subp:SIP/0000000065-0000006a 2 0 2 450 500
subp:SIP/0000000066-00000069 2 0 2 450 500
subp:SIP/0000000067-00000068 2 0 2 450 500
subp:SIP/0000000068-00000067 2 0 2 450 500
subp:SIP/0000000069-00000066 2 0 2 450 500
subp:SIP/0000000070-00000065 2 0 2 450 500
subp:SIP/0000000071-00000064 2 0 2 450 500
subp:SIP/0000000072-00000063 2 0 2 450 500
subp:SIP/0000000073-00000062 2 0 2 450 500
subp:SIP/0000000074-00000061 2 0 2 450 500
subp:SIP/0000000075-00000060 2 0 2 450 500
subp:SIP/0000000076-0000005f 2 0 2 450 500
subp:SIP/0000000077-0000005e 2 0 2 450 500
subp:SIP/0000000078-0000005d 2 0 2 450 500
subp:SIP/0000000079-0000005c 2 0 2 450 500
subp:SIP/0000000080-0000005b 2 0 2 450 500
subp:SIP/0000000081-0000005a 2 0 2 450 500
subp:SIP/0000000082-00000059 2 0 2 450 500
subp:SIP/0000000083-00000058 2 0 2 450 500
subp:SIP/0000000084-00000057 2 0 2 450 500
subp:SIP/0000000085-00000056 2 0 2 450 500
subp:SIP/0000000086-00000055 2 0 2 450 500
subp:SIP/0000000087-00000054 2 0 2 450 500
subp:SIP/0000000088-00000053 2 0 2 450 500
subp:SIP/0000000089-00000052 2 0 2 450 500
subp:SIP/0000000090-00000051 2 0 2 450 500
subp:SIP/0000000091-00000050 2 0 2 450 500
subp:SIP/0000000092-0000004f 2 0 2 450 500
subp:SIP/0000000093-0000004e 2 0 2 450 500
subp:SIP/0000000094-0000004d 2 0 2 450 500
subp:SIP/0000000095-0000004c 2 0 2 450 500
subp:SIP/0000000096-0000004b 2 0 2 450 500
subp:SIP/0000000097-0000004a 2 0 2 450 500
subp:SIP/0000000098-00000049 2 0 2 450 500
subp:SIP/0000000099-00000048 2 0 2 450 500
subp:SIP/0000000100-00000047 2 0 2 450 500
subp:SIP/0000000101-00000046 2 0 2 450 500
subp:SIP/0000000102-00000045 2 0 2 450 500
subp:SIP/0000000103-00000044 2 0 2 450 500
subp:SIP/0000000104-00000043 2 0 2 450 500
subp:SIP/0000000105-00000042 2 0 2 450 500
subp:SIP/0000000106-00000041 2 0 2 450 500
subp:SIP/appliance2-00000009 145 0 15 450 500
subp:SIP/kmlio10-00000008 69972 0 30 450 500
76 taskprocessors
> Asterisk threads consume cpu usage waiting on pj_ioqueue_poll
> -------------------------------------------------------------
>
> Key: ASTERISK-27608
> URL: https://issues.asterisk.org/jira/browse/ASTERISK-27608
> Project: Asterisk
> Issue Type: Bug
> Security Level: None
> Components: Channels/chan_rtp, Channels/chan_sip/General
> Affects Versions: 13.18.4
> Reporter: Cristian Paul Peñaranda Rojas
> Assignee: Cristian Paul Peñaranda Rojas
> Labels: pjsip
>
> Thread 224 (Thread 0x7f0969259700 (LWP 11400)):
> #0 0x00007f09d2b2d19d in nanosleep () from /lib64/libc.so.6
> #1 0x00007f09d2b5de74 in usleep () from /lib64/libc.so.6
> #2 0x00007f0989e62ed2 in pj_thread_sleep () from /usr/lib64/libpj.so.2
> #3 0x00007f0989e619fa in pj_ioqueue_poll () from /usr/lib64/libpj.so.2
> #4 0x00007f096f9bf3fd in ioqueue_worker_thread (data=0x7f09c0032110) at res_rtp_asterisk.c:1205
> #5 0x00007f0989e62bba in thread_main () from /usr/lib64/libpj.so.2
> #6 0x00007f09d35f7de5 in start_thread () from /lib64/libpthread.so.0
> Threads just keep growing until cpu performance degrades and asterisk gets killed
--
This message was sent by Atlassian JIRA
(v6.2#6252)
More information about the asterisk-bugs
mailing list