hello dear friends ,
my asterisk server has a serious problem today from morning .
when i make an incoming call to ivr, ivr file plays very slow with problem and my cpu load is very abnormal, over 60% with a static manner :
my simultaneous calls go to 80, my ivr plays slow (packet lost voice), problem exists even just with 25 simultaneous calls , and all of this period my cpu load is in staic range like a straight line as you can see in above picture,
i think asterisk hangs in some state but not completely, calls come in and connect to operators but with bad voice of ivr and problem in conversation (slow rtp)
unfortunately i cant restart asterisk service or restart linux OS because many calls are in server and i cant drop them.
how can i monitor the problem
please please help me
Assuming your high CPU usage is caused by Asterisk use the MALLOC_DEBUG tool to check if there is any memory look killing you system memory
https://blogs.asterisk.org/2017/10/18/using-malloc_debug-find-memory-misuse/
thanks for your kind help
can i disable it, it’s making problem for my calls
in the first day of system running , we have 180 simultanous calls without any problem, but after just 1 week , now we have big issue : abnormal cpu load and slowness in voices (ivr, conversations…)
last night i have that abnormal cpu load even with 3 simultanous calls, i restart asterisk and you can see my cpu load pull down :
please help me
it’s clear that asterisk is consuming that cpu load, because with restart service, cpu load became normal
is there any way so that i can check that, which modules in asterisk are taking high cpu usage and make asterisk to be slow.
this abnormal cpu load started today again about 9:30 am with just 40 simultanous calls, about 8:30am there were 45 simultanous calls in asterisk without any problem, so i think problem is not concern to high simultanous calls at all.
my asterisk is 13.18.4.
and how can i disable them.
I’m assuming you are not using a VM, as the CPU capacity corresonding to 100% coud vary on a VM.
You will probably need to take some core dumps to see which threads are active and what they are doing.
I don’t think this is a case where thread debugging was actually useful, as that is more about locks, than loops.
You need to ask yourself what you are doing that is unusual, as I think you can safely assume that most people do not see this, and also make sure you are using one of the latest supported versions.
thanks for your help
acctually my asterisk is on hp server and esx 6.5
it has 10 core cpu and 10G memory.
@amir_opensource
Try to search for some logs, and see if there are errors flooding your system, also, make sure if extensions.conf doesn’t go past the limit lines that asterisk can support.
¿How much time does take Asterisk to reload it own files? It should be very fast, if not, maybe there is some conf. error that is being reproduced every time. (Use reload on Asterisk prompt)
Greets, and remember to keep a system trace through logs!
thanks dear Diego
what was the limit line of extensions.conf??
how can i check conf. errors ??
i check “core shoe threads” :
astrsk_hamta*CLI> core show threads
0x7f5ad95c9700 1413 netconsole started at [ 1739] asterisk.c listener()
0x7f5ad9358700 554 inotify_daemon started at [ 426] stdtime/localtime.c add_notify()
0x7f5b4151b700 424 autoservice_run started at [ 234] autoservice.c ast_autoservice_start()
0x7f5ad9452700 353 handle_tcptls_connection started at [ 854] tcptls.c ast_tcptls_server_root()
0x7f5ad92db700 352 handle_tcptls_connection started at [ 854] tcptls.c ast_tcptls_server_root()
0x7f5b41598700 351 handle_tcptls_connection started at [ 854] tcptls.c ast_tcptls_server_root()
0x7f59c7f82700 32386 handle_tcptls_connection started at [ 854] tcptls.c ast_tcptls_server_root()
0x7f59c7fff700 32385 handle_tcptls_connection started at [ 854] tcptls.c ast_tcptls_server_root()
0x7f5a48085700 32384 handle_tcptls_connection started at [ 854] tcptls.c ast_tcptls_server_root()
0x7f5a48102700 32383 handle_tcptls_connection started at [ 854] tcptls.c ast_tcptls_server_root()
0x7f5a4817f700 32382 handle_tcptls_connection started at [ 854] tcptls.c ast_tcptls_server_root()
0x7f5a481fc700 32381 handle_tcptls_connection started at [ 854] tcptls.c ast_tcptls_server_root()
0x7f5a48279700 32380 handle_tcptls_connection started at [ 854] tcptls.c ast_tcptls_server_root()
0x7f5a482f6700 32379 handle_tcptls_connection started at [ 854] tcptls.c ast_tcptls_server_root()
0x7f5a48373700 32378 handle_tcptls_connection started at [ 854] tcptls.c ast_tcptls_server_root()
0x7f5a483f0700 32377 handle_tcptls_connection started at [ 854] tcptls.c ast_tcptls_server_root()
0x7f5a4846d700 32376 handle_tcptls_connection started at [ 854] tcptls.c ast_tcptls_server_root()
0x7f5a484ea700 32375 handle_tcptls_connection started at [ 854] tcptls.c ast_tcptls_server_root()
0x7f5a48567700 32374 handle_tcptls_connection started at [ 854] tcptls.c ast_tcptls_server_root()
0x7f5a485e4700 32373 handle_tcptls_connection started at [ 854] tcptls.c ast_tcptls_server_root()
0x7f5a48661700 32372 handle_tcptls_connection started at [ 854] tcptls.c ast_tcptls_server_root()
0x7f5a486de700 32371 handle_tcptls_connection started at [ 854] tcptls.c ast_tcptls_server_root()
0x7f5a4875b700 32370 handle_tcptls_connection started at [ 854] tcptls.c ast_tcptls_server_root()
0x7f5a487d8700 32369 handle_tcptls_connection started at [ 854] tcptls.c ast_tcptls_server_root()
0x7f5a48855700 32367 monitor_sig_flags started at [ 4812] asterisk.c asterisk_daemon()
0x7f5a488d2700 32366 default_tps_processing_function started at [ 202] taskprocessor.c default_listener_start()
0x7f5a4894f700 32365 default_tps_processing_function started at [ 202] taskprocessor.c default_listener_start()
0x7f5a489cc700 32364 handle_tcptls_connection started at [ 854] tcptls.c ast_tcptls_server_root()
0x7f5a48a49700 32363 handle_tcptls_connection started at [ 854] tcptls.c ast_tcptls_server_root()
0x7f5a48ac6700 32362 handle_tcptls_connection started at [ 854] tcptls.c ast_tcptls_server_root()
0x7f5a48b43700 32361 handle_tcptls_connection started at [ 854] tcptls.c ast_tcptls_server_root()
0x7f5a48bc0700 32360 handle_tcptls_connection started at [ 854] tcptls.c ast_tcptls_server_root()
0x7f5a48c3d700 32359 handle_tcptls_connection started at [ 854] tcptls.c ast_tcptls_server_root()
0x7f5a48cba700 32358 handle_tcptls_connection started at [ 854] tcptls.c ast_tcptls_server_root()
0x7f5a48d37700 32357 handle_tcptls_connection started at [ 854] tcptls.c ast_tcptls_server_root()
0x7f5a48db4700 32356 handle_tcptls_connection started at [ 854] tcptls.c ast_tcptls_server_root()
0x7f5a48e31700 32355 handle_tcptls_connection started at [ 854] tcptls.c ast_tcptls_server_root()
0x7f5a48eae700 32354 handle_tcptls_connection started at [ 854] tcptls.c ast_tcptls_server_root()
0x7f5a48f2b700 32353 handle_tcptls_connection started at [ 854] tcptls.c ast_tcptls_server_root()
0x7f5a48fa8700 32352 handle_tcptls_connection started at [ 854] tcptls.c ast_tcptls_server_root()
0x7f5a49025700 32351 handle_tcptls_connection started at [ 854] tcptls.c ast_tcptls_server_root()
0x7f5a490a2700 32350 handle_tcptls_connection started at [ 854] tcptls.c ast_tcptls_server_root()
0x7f5a4911f700 32349 handle_tcptls_connection started at [ 854] tcptls.c ast_tcptls_server_root()
0x7f5a4919c700 32348 handle_tcptls_connection started at [ 854] tcptls.c ast_tcptls_server_root()
0x7f5a49219700 32347 handle_tcptls_connection started at [ 854] tcptls.c ast_tcptls_server_root()
0x7f5a49296700 32346 handle_tcptls_connection started at [ 854] tcptls.c ast_tcptls_server_root()
0x7f5a49313700 32345 handle_tcptls_connection started at [ 854] tcptls.c ast_tcptls_server_root()
0x7f5a49390700 32344 handle_tcptls_connection started at [ 854] tcptls.c ast_tcptls_server_root()
0x7f5a4940d700 32343 handle_tcptls_connection started at [ 854] tcptls.c ast_tcptls_server_root()
0x7f5a4948a700 32342 handle_tcptls_connection started at [ 854] tcptls.c ast_tcptls_server_root()
0x7f5a49507700 32341 handle_tcptls_connection started at [ 854] tcptls.c ast_tcptls_server_root()
0x7f5a49584700 32340 handle_tcptls_connection started at [ 854] tcptls.c ast_tcptls_server_root()
0x7f5a49601700 32339 handle_tcptls_connection started at [ 854] tcptls.c ast_tcptls_server_root()
0x7f5a4967e700 32338 handle_tcptls_connection started at [ 854] tcptls.c ast_tcptls_server_root()
0x7f5a496fb700 32337 handle_tcptls_connection started at [ 854] tcptls.c ast_tcptls_server_root()
0x7f5a49778700 32336 handle_tcptls_connection started at [ 854] tcptls.c ast_tcptls_server_root()
0x7f5a497f5700 32335 handle_tcptls_connection started at [ 854] tcptls.c ast_tcptls_server_root()
0x7f5a49872700 32334 handle_tcptls_connection started at [ 854] tcptls.c ast_tcptls_server_root()
0x7f5a4996c700 32332 handle_tcptls_connection started at [ 854] tcptls.c ast_tcptls_server_root()
0x7f5a498ef700 32333 handle_tcptls_connection started at [ 854] tcptls.c ast_tcptls_server_root()
0x7f5a499e9700 32331 handle_tcptls_connection started at [ 854] tcptls.c ast_tcptls_server_root()
0x7f5a49a66700 32330 handle_tcptls_connection started at [ 854] tcptls.c ast_tcptls_server_root()
0x7f5a49ae3700 32329 handle_tcptls_connection started at [ 854] tcptls.c ast_tcptls_server_root()
0x7f5a49b60700 32328 handle_tcptls_connection started at [ 854] tcptls.c ast_tcptls_server_root()
0x7f5a49bdd700 32327 handle_tcptls_connection started at [ 854] tcptls.c ast_tcptls_server_root()
0x7f5a49c5a700 32326 handle_tcptls_connection started at [ 854] tcptls.c ast_tcptls_server_root()
0x7f5a49cd7700 32325 handle_tcptls_connection started at [ 854] tcptls.c ast_tcptls_server_root()
0x7f5a49d54700 32324 handle_tcptls_connection started at [ 854] tcptls.c ast_tcptls_server_root()
0x7f5a49dd1700 32323 handle_tcptls_connection started at [ 854] tcptls.c ast_tcptls_server_root()
0x7f5a49e4e700 32322 handle_tcptls_connection started at [ 854] tcptls.c ast_tcptls_server_root()
0x7f5a49ecb700 32321 handle_tcptls_connection started at [ 854] tcptls.c ast_tcptls_server_root()
0x7f5a49f48700 32320 handle_tcptls_connection started at [ 854] tcptls.c ast_tcptls_server_root()
0x7f5a49fc5700 32319 handle_tcptls_connection started at [ 854] tcptls.c ast_tcptls_server_root()
0x7f5a4a042700 32318 handle_tcptls_connection started at [ 854] tcptls.c ast_tcptls_server_root()
0x7f5a4a0bf700 32317 handle_tcptls_connection started at [ 854] tcptls.c ast_tcptls_server_root()
0x7f5a4a13c700 32316 handle_tcptls_connection started at [ 854] tcptls.c ast_tcptls_server_root()
0x7f5a4a1b9700 32315 handle_tcptls_connection started at [ 854] tcptls.c ast_tcptls_server_root()
0x7f5a4a236700 32314 handle_tcptls_connection started at [ 854] tcptls.c ast_tcptls_server_root()
0x7f5a4a2b3700 32313 handle_tcptls_connection started at [ 854] tcptls.c ast_tcptls_server_root()
0x7f5a4a330700 32312 handle_tcptls_connection started at [ 854] tcptls.c ast_tcptls_server_root()
0x7f5a4a3ad700 32311 handle_tcptls_connection started at [ 854] tcptls.c ast_tcptls_server_root()
0x7f5a4a42a700 32310 handle_tcptls_connection started at [ 854] tcptls.c ast_tcptls_server_root()
0x7f5a4a4a7700 32309 handle_tcptls_connection started at [ 854] tcptls.c ast_tcptls_server_root()
0x7f5a4a524700 32308 handle_tcptls_connection started at [ 854] tcptls.c ast_tcptls_server_root()
0x7f5a4a5a1700 32307 handle_tcptls_connection started at [ 854] tcptls.c ast_tcptls_server_root()
0x7f5a4a61e700 32306 handle_tcptls_connection started at [ 854] tcptls.c ast_tcptls_server_root()
0x7f5a4a69b700 32305 handle_tcptls_connection started at [ 854] tcptls.c ast_tcptls_server_root()
0x7f5a4a718700 32304 handle_tcptls_connection started at [ 854] tcptls.c ast_tcptls_server_root()
0x7f5a4a795700 32303 handle_tcptls_connection started at [ 854] tcptls.c ast_tcptls_server_root()
0x7f5a4a812700 32302 handle_tcptls_connection started at [ 854] tcptls.c ast_tcptls_server_root()
0x7f5a4a88f700 32301 handle_tcptls_connection started at [ 854] tcptls.c ast_tcptls_server_root()
0x7f5a4a90c700 32300 handle_tcptls_connection started at [ 854] tcptls.c ast_tcptls_server_root()
0x7f5a4a989700 32299 handle_tcptls_connection started at [ 854] tcptls.c ast_tcptls_server_root()
0x7f5a4aa06700 32298 handle_tcptls_connection started at [ 854] tcptls.c ast_tcptls_server_root()
0x7f5a4aa83700 32297 handle_tcptls_connection started at [ 854] tcptls.c ast_tcptls_server_root()
0x7f5a4ab00700 32296 handle_tcptls_connection started at [ 854] tcptls.c ast_tcptls_server_root()
0x7f5a4ab7d700 32295 handle_tcptls_connection started at [ 854] tcptls.c ast_tcptls_server_root()
0x7f5a4abfa700 32294 handle_tcptls_connection started at [ 854] tcptls.c ast_tcptls_server_root()
0x7f5a4ac77700 32293 handle_tcptls_connection started at [ 854] tcptls.c ast_tcptls_server_root()
0x7f5a4acf4700 32292 handle_tcptls_connection started at [ 854] tcptls.c ast_tcptls_server_root()
0x7f5a4ad71700 32291 handle_tcptls_connection started at [ 854] tcptls.c ast_tcptls_server_root()
0x7f5a4adee700 32290 handle_tcptls_connection started at [ 854] tcptls.c ast_tcptls_server_root()
0x7f5a4ae6b700 32289 handle_tcptls_connection started at [ 854] tcptls.c ast_tcptls_server_root()
0x7f5a4aee8700 32288 handle_tcptls_connection started at [ 854] tcptls.c ast_tcptls_server_root()
0x7f5a4af65700 32287 handle_tcptls_connection started at [ 854] tcptls.c ast_tcptls_server_root()
0x7f5a4afe2700 32286 handle_tcptls_connection started at [ 854] tcptls.c ast_tcptls_server_root()
0x7f5a4b05f700 32285 handle_tcptls_connection started at [ 854] tcptls.c ast_tcptls_server_root()
0x7f5a4b0dc700 32284 handle_tcptls_connection started at [ 854] tcptls.c ast_tcptls_server_root()
0x7f5a4b159700 32283 handle_tcptls_connection started at [ 854] tcptls.c ast_tcptls_server_root()
0x7f5a4b1d6700 32282 handle_tcptls_connection started at [ 854] tcptls.c ast_tcptls_server_root()
0x7f5a4b253700 32281 handle_tcptls_connection started at [ 854] tcptls.c ast_tcptls_server_root()
0x7f5a4b2d0700 32280 handle_tcptls_connection started at [ 854] tcptls.c ast_tcptls_server_root()
0x7f5a4b34d700 32279 handle_tcptls_connection started at [ 854] tcptls.c ast_tcptls_server_root()
0x7f5a4b3ca700 32278 handle_tcptls_connection started at [ 854] tcptls.c ast_tcptls_server_root()
0x7f5a4b447700 32277 handle_tcptls_connection started at [ 854] tcptls.c ast_tcptls_server_root()
0x7f5a4b4c4700 32276 handle_tcptls_connection started at [ 854] tcptls.c ast_tcptls_server_root()
0x7f5a4b541700 32275 handle_tcptls_connection started at [ 854] tcptls.c ast_tcptls_server_root()
0x7f5a4b5be700 32274 handle_tcptls_connection started at [ 854] tcptls.c ast_tcptls_server_root()
0x7f5a4b63b700 32273 handle_tcptls_connection started at [ 854] tcptls.c ast_tcptls_server_root()
0x7f5a4b6b8700 32272 handle_tcptls_connection started at [ 854] tcptls.c ast_tcptls_server_root()
0x7f5a4b735700 32271 handle_tcptls_connection started at [ 854] tcptls.c ast_tcptls_server_root()
0x7f5a4b7b2700 32270 handle_tcptls_connection started at [ 854] tcptls.c ast_tcptls_server_root()
0x7f5a4b82f700 32269 handle_tcptls_connection started at [ 854] tcptls.c ast_tcptls_server_root()
0x7f5a4b8ac700 32268 handle_tcptls_connection started at [ 854] tcptls.c ast_tcptls_server_root()
0x7f5a4b929700 32267 handle_tcptls_connection started at [ 854] tcptls.c ast_tcptls_server_root()
0x7f5a4b9a6700 32266 handle_tcptls_connection started at [ 854] tcptls.c ast_tcptls_server_root()
0x7f5a4ba23700 32265 handle_tcptls_connection started at [ 854] tcptls.c ast_tcptls_server_root()
0x7f5a4baa0700 32264 handle_tcptls_connection started at [ 854] tcptls.c ast_tcptls_server_root()
0x7f5a4bb1d700 32263 handle_tcptls_connection started at [ 854] tcptls.c ast_tcptls_server_root()
0x7f5a4bb9a700 32262 handle_tcptls_connection started at [ 854] tcptls.c ast_tcptls_server_root()
0x7f5a4bc17700 32261 handle_tcptls_connection started at [ 854] tcptls.c ast_tcptls_server_root()
0x7f5a4bc94700 32260 handle_tcptls_connection started at [ 854] tcptls.c ast_tcptls_server_root()
0x7f5a4bd11700 32259 handle_tcptls_connection started at [ 854] tcptls.c ast_tcptls_server_root()
0x7f5a4bd8e700 32258 handle_tcptls_connection started at [ 854] tcptls.c ast_tcptls_server_root()
0x7f5a4be0b700 32257 handle_tcptls_connection started at [ 854] tcptls.c ast_tcptls_server_root()
0x7f5a4be88700 32256 handle_tcptls_connection started at [ 854] tcptls.c ast_tcptls_server_root()
0x7f5a4bf05700 32255 handle_tcptls_connection started at [ 854] tcptls.c ast_tcptls_server_root()
0x7f5a4bf82700 32254 handle_tcptls_connection started at [ 854] tcptls.c ast_tcptls_server_root()
0x7f5a4bfff700 32253 handle_tcptls_connection started at [ 854] tcptls.c ast_tcptls_server_root()
0x7f5a600df700 32252 handle_tcptls_connection started at [ 854] tcptls.c ast_tcptls_server_root()
0x7f5a6015c700 32251 handle_tcptls_connection started at [ 854] tcptls.c ast_tcptls_server_root()
0x7f5a601d9700 32250 handle_tcptls_connection started at [ 854] tcptls.c ast_tcptls_server_root()
0x7f5a60256700 32249 handle_tcptls_connection started at [ 854] tcptls.c ast_tcptls_server_root()
0x7f5a602d3700 32248 handle_tcptls_connection started at [ 854] tcptls.c ast_tcptls_server_root()
0x7f5a60350700 32247 handle_tcptls_connection started at [ 854] tcptls.c ast_tcptls_server_root()
0x7f5a603cd700 32246 handle_tcptls_connection started at [ 854] tcptls.c ast_tcptls_server_root()
0x7f5a6044a700 32245 handle_tcptls_connection started at [ 854] tcptls.c ast_tcptls_server_root()
0x7f5a6063e700 32241 handle_tcptls_connection started at [ 854] tcptls.c ast_tcptls_server_root()
0x7f5a604c7700 32244 handle_tcptls_connection started at [ 854] tcptls.c ast_tcptls_server_root()
0x7f5a60544700 32243 handle_tcptls_connection started at [ 854] tcptls.c ast_tcptls_server_root()
0x7f5a605c1700 32242 handle_tcptls_connection started at [ 854] tcptls.c ast_tcptls_server_root()
0x7f5a606bb700 32240 handle_tcptls_connection started at [ 854] tcptls.c ast_tcptls_server_root()
0x7f5a60738700 32239 handle_tcptls_connection started at [ 854] tcptls.c ast_tcptls_server_root()
0x7f5a607b5700 32238 handle_tcptls_connection started at [ 854] tcptls.c ast_tcptls_server_root()
0x7f5a60832700 32237 handle_tcptls_connection started at [ 854] tcptls.c ast_tcptls_server_root()
0x7f5a608af700 32236 handle_tcptls_connection started at [ 854] tcptls.c ast_tcptls_server_root()
0x7f5a6092c700 32235 handle_tcptls_connection started at [ 854] tcptls.c ast_tcptls_server_root()
0x7f5a609a9700 32234 handle_tcptls_connection started at [ 854] tcptls.c ast_tcptls_server_root()
0x7f5a60a26700 32233 handle_tcptls_connection started at [ 854] tcptls.c ast_tcptls_server_root()
0x7f5a60aa3700 32232 handle_tcptls_connection started at [ 854] tcptls.c ast_tcptls_server_root()
0x7f5a60b20700 32231 handle_tcptls_connection started at [ 854] tcptls.c ast_tcptls_server_root()
0x7f5a60b9d700 32230 handle_tcptls_connection started at [ 854] tcptls.c ast_tcptls_server_root()
0x7f5a60c1a700 32229 handle_tcptls_connection started at [ 854] tcptls.c ast_tcptls_server_root()
0x7f5a60c97700 32228 handle_tcptls_connection started at [ 854] tcptls.c ast_tcptls_server_root()
0x7f5a60d91700 32227 do_monitor started at [ 5924] chan_unistim.c restart_monitor()
0x7f5a60d14700 32226 handle_tcptls_connection started at [ 854] tcptls.c ast_tcptls_server_root()
0x7f5a60e0e700 32225 handle_tcptls_connection started at [ 854] tcptls.c ast_tcptls_server_root()
0x7f5a60e8b700 32224 handle_tcptls_connection started at [ 854] tcptls.c ast_tcptls_server_root()
0x7f5a60f08700 32223 handle_tcptls_connection started at [ 854] tcptls.c ast_tcptls_server_root()
0x7f5a60f85700 32222 handle_tcptls_connection started at [ 854] tcptls.c ast_tcptls_server_root()
0x7f5a61002700 32221 handle_tcptls_connection started at [ 854] tcptls.c ast_tcptls_server_root()
0x7f5a6107f700 32220 handle_tcptls_connection started at [ 854] tcptls.c ast_tcptls_server_root()
0x7f5a610fc700 32219 handle_tcptls_connection started at [ 854] tcptls.c ast_tcptls_server_root()
0x7f5a61179700 32218 handle_tcptls_connection started at [ 854] tcptls.c ast_tcptls_server_root()
0x7f5a611f6700 32217 handle_tcptls_connection started at [ 854] tcptls.c ast_tcptls_server_root()
0x7f5a61273700 32216 handle_tcptls_connection started at [ 854] tcptls.c ast_tcptls_server_root()
0x7f5a612f0700 32215 handle_tcptls_connection started at [ 854] tcptls.c ast_tcptls_server_root()
0x7f5a6136d700 32214 do_monitor started at [ 1183] chan_phone.c restart_monitor()
0x7f5a613ea700 32213 handle_tcptls_connection started at [ 854] tcptls.c ast_tcptls_server_root()
0x7f5a61467700 32212 handle_tcptls_connection started at [ 854] tcptls.c ast_tcptls_server_root()
0x7f5a614e4700 32211 default_tps_processing_function started at [ 202] taskprocessor.c default_listener_start()
0x7f5a61561700 32210 handle_tcptls_connection started at [ 854] tcptls.c ast_tcptls_server_root()
0x7f5a615de700 32209 handle_tcptls_connection started at [ 854] tcptls.c ast_tcptls_server_root()
0x7f5a6165b700 32208 handle_tcptls_connection started at [ 854] tcptls.c ast_tcptls_server_root()
0x7f5a616d8700 32207 handle_tcptls_connection started at [ 854] tcptls.c ast_tcptls_server_root()
0x7f5a61755700 32206 handle_tcptls_connection started at [ 854] tcptls.c ast_tcptls_server_root()
0x7f5a617d2700 32205 process_clearcache started at [ 2281] pbx_dundi.c start_network_thread()
0x7f5a6184f700 32204 process_precache started at [ 2280] pbx_dundi.c start_network_thread()
0x7f5a618cc700 32203 network_thread started at [ 2279] pbx_dundi.c start_network_thread()
0x7f5a61949700 32202 handle_tcptls_connection started at [ 854] tcptls.c ast_tcptls_server_root()
0x7f5a619c6700 32201 handle_tcptls_connection started at [ 854] tcptls.c ast_tcptls_server_root()
0x7f5a61a43700 32200 handle_tcptls_connection started at [ 854] tcptls.c ast_tcptls_server_root()
0x7f5a61ac0700 32199 handle_tcptls_connection started at [ 854] tcptls.c ast_tcptls_server_root()
0x7f5a61b3d700 32198 handle_tcptls_connection started at [ 854] tcptls.c ast_tcptls_server_root()
0x7f5a61bba700 32197 default_tps_processing_function started at [ 202] taskprocessor.c default_listener_start()
0x7f5a61c37700 32196 cleanup started at [ 410] pbx_realtime.c load_module()
0x7f5a61cb4700 32195 scan_thread started at [ 954] pbx_spool.c load_module()
0x7f5a61d31700 32194 default_tps_processing_function started at [ 202] taskprocessor.c default_listener_start()
0x7f5a61dae700 32193 lock_broker started at [ 524] func_lock.c load_module()
0x7f5a61e2b700 32192 default_tps_processing_function started at [ 202] taskprocessor.c default_listener_start()
0x7f5a61ea8700 32191 default_tps_processing_function started at [ 202] taskprocessor.c default_listener_start()
0x7f5a61f25700 32190 default_tps_processing_function started at [ 202] taskprocessor.c default_listener_start()
0x7f5a6201f700 32187 check_expiration_thread started at [ 101] res_pjsip_registrar_expire.c expiration_global_loaded()
0x7f5a6209c700 32186 do_monitor started at [ 3958] chan_mgcp.c restart_monitor()
0x7f5a62119700 32185 network_thread started at [12641] chan_iax2.c start_network_thread()
0x7f5a62196700 32184 iax2_process_thread started at [12619] chan_iax2.c start_network_thread()
0x7f5a62213700 32183 iax2_process_thread started at [12619] chan_iax2.c start_network_thread()
0x7f5a62290700 32182 iax2_process_thread started at [12619] chan_iax2.c start_network_thread()
0x7f5a6230d700 32181 iax2_process_thread started at [12619] chan_iax2.c start_network_thread()
0x7f5a6238a700 32180 iax2_process_thread started at [12619] chan_iax2.c start_network_thread()
0x7f5a62407700 32179 iax2_process_thread started at [12619] chan_iax2.c start_network_thread()
0x7f5a62484700 32178 iax2_process_thread started at [12619] chan_iax2.c start_network_thread()
0x7f5a62501700 32177 iax2_process_thread started at [12619] chan_iax2.c start_network_thread()
0x7f5a6257e700 32176 iax2_process_thread started at [12619] chan_iax2.c start_network_thread()
0x7f5a625fb700 32175 iax2_process_thread started at [12619] chan_iax2.c start_network_thread()
0x7f5a62678700 32174 default_tps_processing_function started at [ 202] taskprocessor.c default_listener_start()
0x7f5a626f5700 32173 sched_run started at [ 217] sched.c ast_sched_start_thread()
0x7f5a62772700 32172 default_tps_processing_function started at [ 202] taskprocessor.c default_listener_start()
0x7f5a627ef700 32171 sched_run started at [ 217] sched.c ast_sched_start_thread()
0x7f5a6286c700 32170 do_monitor started at [29687] chan_sip.c restart_monitor()
0x7f5a628e9700 32169 default_tps_processing_function started at [ 202] taskprocessor.c default_listener_start()
0x7f5a62966700 32168 sched_run started at [ 217] sched.c ast_sched_start_thread()
0x7f5a629e3700 32167 accept_thread started at [ 8539] chan_skinny.c config_load()
0x7f5a62a60700 32166 do_monitor started at [ 4099] chan_ooh323.c restart_monitor()
0x7f5a62be2700 32164 ooh323c_stack_thread started at [ 201] ooh323cDriver.c ooh323c_start_stack_thread()
0x7f5a62b21700 32165 ooh323c_cmd_thread started at [ 206] ooh323cDriver.c ooh323c_start_stack_thread()
0x7f5a62c5f700 32163 do_monitor started at [11704] chan_dahdi.c restart_monitor()
0x7f5ac80e9700 32161 sched_run started at [ 217] sched.c ast_sched_start_thread()
0x7f5ac8166700 32160 do_timing started at [ 437] res_timing_pthread.c init_timing_thread()
0x7f5ad80db700 32159 default_tps_processing_function started at [ 202] taskprocessor.c default_listener_start()
0x7f5ad8f70700 32158 do_refresh started at [ 1889] res_calendar.c load_module()
0x7f5ad8fed700 32157 default_tps_processing_function started at [ 202] taskprocessor.c default_listener_start()
0x7f5ad906a700 32156 sched_run started at [ 217] sched.c ast_sched_start_thread()
0x7f5ad90e7700 32155 sched_run started at [ 217] sched.c ast_sched_start_thread()
0x7f5ad9164700 32154 sched_run started at [ 217] sched.c ast_sched_start_thread()
0x7f5ad93d5700 32149 handle_tcptls_connection started at [ 854] tcptls.c ast_tcptls_server_root()
0x7f5b200d0700 32141 sched_run started at [ 217] sched.c ast_sched_start_thread()
0x7f5b400d1700 32140 default_tps_processing_function started at [ 202] taskprocessor.c default_listener_start()
0x7f5b4014e700 32139 sched_run started at [ 217] sched.c ast_sched_start_thread()
0x7f5b40ec2700 32138 default_tps_processing_function started at [ 202] taskprocessor.c default_listener_start()
0x7f5b40f3f700 32137 sched_run started at [ 217] sched.c ast_sched_start_thread()
0x7f5b40fbc700 32136 default_tps_processing_function started at [ 202] taskprocessor.c default_listener_start()
0x7f5b41039700 32135 desc->accept_fn started at [ 1268] tcptls.c ast_tcptls_server_start()
0x7f5b410b6700 32134 default_tps_processing_function started at [ 202] taskprocessor.c default_listener_start()
0x7f5b41133700 32133 default_tps_processing_function started at [ 202] taskprocessor.c default_listener_start()
0x7f5b411b0700 32132 default_tps_processing_function started at [ 202] taskprocessor.c default_listener_start()
0x7f5b4122d700 32131 default_tps_processing_function started at [ 202] taskprocessor.c default_listener_start()
0x7f5b412aa700 32130 default_tps_processing_function started at [ 202] taskprocessor.c default_listener_start()
0x7f5b41327700 32129 do_devstate_changes started at [ 646] devicestate.c ast_device_state_engine_init()
0x7f5b413a4700 32128 bridge_manager_thread started at [ 4910] bridge.c bridge_manager_create()
0x7f5b41421700 32127 default_tps_processing_function started at [ 202] taskprocessor.c default_listener_start()
0x7f5b4149e700 32126 default_tps_processing_function started at [ 202] taskprocessor.c default_listener_start()
0x7f5b4170f700 32121 logger_thread started at [ 1705] logger.c init_logger()
0x7f5b41809700 32119 listener started at [ 1799] asterisk.c ast_makesocket()
0x7f5b4616c700 32118 default_tps_processing_function started at [ 202] taskprocessor.c default_listener_start()
0x7f5b461e9700 32116 default_tps_processing_function started at [ 202] taskprocessor.c default_listener_start()
0x7f5b46266700 32115 db_sync_thread started at [ 1022] db.c astdb_init()
one of threads repeat very much:
handle_tcptls_connection started at [ 854] tcptls.c ast_tcptls_server_root()
i dont know why this thread made and what does it do and can i kill it safely.
i restart service now , but after restart these threads willbe made again rapidly.
i check my configuration about tls , there is no config OR maybe a special config exist that i dont know about it.
can you help me
Asterisk doesn’t have hard limits on the number peers that it can support.
The large number of SSL threads indicates either AMI connections that are not being closed properly, or large numbers of SIP peers configured to use encryption
dear david
thanks million for your great help.
you are right. there was 185 connected ami connections in my server. “manager show connected”
acctually one of our external service that works with manager , didnot close the socket and its number goes up to 185 and make all repeated thread as you saw in above.
when he restart his service , all connections gone, and cpu pull down
but with decreasing cpu load, still we have slowness in playing ivr and still cpu load is in a streight line that is not normal :
as you can see about 3:45 cpu load decreased.
does it need a restart ?
i mean do you think every things willbe ok after restart asterisk or with killing connection it must be ok very soon ?:
@amir_opensource , as @david551 said, asterisk doesn’t have a exact limit, it depends on 3 variables.
Hardware, OS (and it’s resources), and the asterisk conf (a very dummy summary…)
And, as i said, you know which logs is your asterisk generating, search for flooded lines or inusual warnings (Pro tip, use WinSCP (remote connection), and look for heavy files)
That is how you check configuration errors.
May the patience be with you, greets!