<div dir="ltr"><div dir="ltr">On Mon, Mar 2, 2020 at 2:52 PM Nick Olsen <<a href="mailto:nick@floridavirtualsolutions.com">nick@floridavirtualsolutions.com</a>> wrote:<br></div><div class="gmail_quote"><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div dir="ltr">Hello All,<div>I'm using Asterisk 16.8.0 on a Centos 7 box. Previously 16.5.0, But recently upgraded to attempt to resolve this issue. Using bundled PJSIP.</div><div>The PBX is using mysql realtime for most functions. The Mysql server is on the same lan as the asterisk box.</div><div><br></div><div>As more users have been moved to this box. It's become unstable. Randomly, I'll start seeing "WARNING[12667] taskprocessor.c: The 'pjsip/distributor-00000173' task processor queue reached 500 scheduled tasks."</div><div><br></div><div>At that time, Running "pjsip show contacts" and "pjsip show endpoints" returns nothing. And the box stops responding to all SIP.</div><div><br></div><div>The only way I've found thus far to resolve the issue is a "service asterisk restart".</div><div><br></div><div>I can confirm at the time of the issue running "asterisk -x 'core show taskprocessors' | grep 'distributor'" does show many items pending across all queues. And the number just increases. Normally when all is fine. They're all at 0.</div><div><br></div><div>Google-foo hasn't produced anything for me outside issues from 13.x that claim to be resolved. Since asterisk isn't fully crashing, I don't think I can get backtrace. Someone please correct me if I'm wrong.</div><div>Any ideas? Tips<br>?</div></div></blockquote><div><br></div><div>The wiki[1] has instructions for getting a backtrace for a deadlock from a running process. It can be used to isolate why things are blocked. Generally, though, when realtime is involved I've found that it usually ends up being the database or that interaction in some way. Any hiccup or issue there can result in blocking in Asterisk. </div><div><br></div><div>[1] <a href="https://wiki.asterisk.org/wiki/display/AST/Getting+a+Backtrace#GettingaBacktrace-GettingInformationForADeadlock">https://wiki.asterisk.org/wiki/display/AST/Getting+a+Backtrace#GettingaBacktrace-GettingInformationForADeadlock</a></div></div><div><br></div>-- <br><div dir="ltr" class="gmail_signature"><div dir="ltr"><div><div dir="ltr"><div><div dir="ltr"><div dir="ltr"><div dir="ltr"><div dir="ltr"><div style="font-family:tahoma,sans-serif"><font color="#073763">Joshua C. Colp</font></div><div style="font-family:tahoma,sans-serif"><font color="#073763">Asterisk Technical Lead</font></div><div style="font-family:tahoma,sans-serif"><font color="#073763">Sangoma Technologies</font></div><div style="font-family:tahoma,sans-serif"><font color="#073763">Check us out at <a href="http://www.sangoma.com" target="_blank">www.sangoma.com</a> and <a href="http://www.asterisk.org" target="_blank">www.asterisk.org</a></font><br></div></div></div></div></div></div></div></div></div></div></div>