<div dir="ltr">Thanks for the info, Joshua.<div><br></div><div>Does PJSIP handle database access the same way Chan_sip did? We had a number of boxes running chan_sip referencing the same mysql server without issue.</div><div><br></div><div>We're going to attempt to get a backtrace on the next occurance. We're also going to run a local copy of the database on the same physical asterisk instance and have the system reference it. Just to "throw everything at the wall".</div><div><br clear="all"><div><div dir="ltr" class="gmail_signature" data-smartmail="gmail_signature"><div dir="ltr"><b>Nick Olsen</b><div>Network Engineer</div><div>Office: 321-408-5000 x103</div><div>Mobile: 321-794-0763</div><div><img src="http://dl.floridavirtualsolutions.com/emaillogo/logo.png"><br></div></div></div></div><br></div></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Mon, Mar 2, 2020 at 1:58 PM Joshua C. Colp <<a href="mailto:jcolp@sangoma.com">jcolp@sangoma.com</a>> wrote:<br></div><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"><div dir="ltr">On Mon, Mar 2, 2020 at 2:52 PM Nick Olsen <<a href="mailto:nick@floridavirtualsolutions.com" target="_blank">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" target="_blank">https://wiki.asterisk.org/wiki/display/AST/Getting+a+Backtrace#GettingaBacktrace-GettingInformationForADeadlock</a></div></div><div><br></div>-- <br><div dir="ltr"><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>
-- <br>
_____________________________________________________________________<br>
-- Bandwidth and Colocation Provided by <a href="http://www.api-digital.com" rel="noreferrer" target="_blank">http://www.api-digital.com</a> --<br>
<br>
Check out the new Asterisk community forum at: <a href="https://community.asterisk.org/" rel="noreferrer" target="_blank">https://community.asterisk.org/</a><br>
<br>
New to Asterisk? Start here:<br>
      <a href="https://wiki.asterisk.org/wiki/display/AST/Getting+Started" rel="noreferrer" target="_blank">https://wiki.asterisk.org/wiki/display/AST/Getting+Started</a><br>
<br>
asterisk-users mailing list<br>
To UNSUBSCRIBE or update options visit:<br>
   <a href="http://lists.digium.com/mailman/listinfo/asterisk-users" rel="noreferrer" target="_blank">http://lists.digium.com/mailman/listinfo/asterisk-users</a></blockquote></div>