<div dir="ltr">can you get some logs, sofia loglevel all 9, and file a JIRA and attach the logs and detailed info to the JIRA please.<div><br></div><div>Also verify which rev of FreeSWITCH you&#39;re running when filing the JIRA.</div></div><div class="gmail_extra"><br><div class="gmail_quote">On Fri, May 8, 2015 at 9:34 AM, Michel Brabants <span dir="ltr">&lt;<a href="mailto:michel.brabants@gmail.com" target="_blank">michel.brabants@gmail.com</a>&gt;</span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr"><div><div><div><div>Hello all,<br><br></div>we have a problem with a 1.4-version of Freeswitch that FS goes to 100% cpu. The problem has been traced to a dns-cache-problem. The dns-cache contains srv-records, which should have 2 a-records, but they have 100&#39;s of a-records, which are mostly the same (some with a different priority). This causes FS do to a lot of compares (to sort the records) and it goes to 100% cpu in the end. <br>The priority almost never is the original priority, so I was thinking that the cache is maybe growing because of graylisting of entries, causing the priority to increase and the ttl to be reset.<br><br></div>The code is however very difficult to follow as it is all event-based and part of big C-structs in sofia-sip. A bug in the gdb-debugger causing static variables to be almost unreadable makes life not much easier. The graylisting policy, as well as the dns cache policy is not really documented as far as I can find, so any info about this would be great.<br><br></div>Anyway, my current thought is that the dns-cache is maybe growing, becuase the graylisting-code sets the priority to a higher value and resets the ttl to a certain value (no idea which one, but the default is 10 minutes and the maximum a day). The srv-record-compare-function however checks also using priority and weight and returns a negative response if they are different. I would think that fs maybe then readds the original srv-records (with priority 0) when it requeries the dns. Those entries will also increase in priority and ttl when they are added, causing the cache to keep growing ...<br></div>Nscd is also being used for dns-caching, which doesn&#39;t help, but I&#39;m not sure if that is the problem as sofia_dig seems to return valid values (except maybe ttl).<br><div><br><br> I would think that ttl is never touched and that the cached is cleared when the ttl expires, but I have no idea when the dns-cache is cleared in FS...<br><br></div><div>I know this is maybe a lot of text, but any info on this topic (sofia dns cache) is welcome.<br><br></div><div>Thanks,<br><br></div><div>Michel<br></div><div><br><div><div><br><br></div></div></div></div>
<br>_________________________________________________________________________<br>
Professional FreeSWITCH Consulting Services:<br>
<a href="mailto:consulting@freeswitch.org">consulting@freeswitch.org</a><br>
<a href="http://www.freeswitchsolutions.com" target="_blank">http://www.freeswitchsolutions.com</a><br>
<br>
Official FreeSWITCH Sites<br>
<a href="http://www.freeswitch.org" target="_blank">http://www.freeswitch.org</a><br>
<a href="http://confluence.freeswitch.org" target="_blank">http://confluence.freeswitch.org</a><br>
<a href="http://www.cluecon.com" target="_blank">http://www.cluecon.com</a><br>
<br>
FreeSWITCH-users mailing list<br>
<a href="mailto:FreeSWITCH-users@lists.freeswitch.org">FreeSWITCH-users@lists.freeswitch.org</a><br>
<a href="http://lists.freeswitch.org/mailman/listinfo/freeswitch-users" target="_blank">http://lists.freeswitch.org/mailman/listinfo/freeswitch-users</a><br>
UNSUBSCRIBE:<a href="http://lists.freeswitch.org/mailman/options/freeswitch-users" target="_blank">http://lists.freeswitch.org/mailman/options/freeswitch-users</a><br>
<a href="http://www.freeswitch.org" target="_blank">http://www.freeswitch.org</a><br></blockquote></div><br><br clear="all"><div><br></div>-- <br><div class="gmail_signature"><div dir="ltr"><div><div dir="ltr"><div><div dir="ltr"><div><div dir="ltr">







<p><font face="courier new, monospace"><b><i><font size="4">Brian West</font></i></b><br><span style="font-size:x-small"><a href="mailto:brian@freeswitch.org" target="_blank">brian@freeswitch.org</a></span></font></p>
<p><font size="1" face="courier new, monospace"><img src="http://billing.freeswitch.org/templates/default/img/whmcslogo.png"><br></font></p><p><font size="2" face="monospace, monospace"><b><i>Twitter: @FreeSWITCH , @briankwest</i></b><br><a href="http://www.freeswitchbook.com" target="_blank">http://www.freeswitchbook.com</a><br><a href="http://www.freeswitchcookbook.com" target="_blank">http://www.freeswitchcookbook.com</a></font></p><p><font face="monospace, monospace">ClueCon 2015 <a href="https://www.cluecon.com/call-for-speakers/" target="_blank">Call for Speakers</a> | <a href="https://freeswitch.com/cart.php?gid=1" target="_blank">Register</a> TODAY! | Reddit: <a href="https://www.reddit.com/r/freeswitch" target="_blank">/r/freeswitch</a></font></p>
<p><font size="2" face="monospace, monospace"><b>T:</b>+19184209001 | <b>F:</b>+19184209002 | <b>M:</b>+1918424WEST (9378)<br><b>iNUM:</b>+883 5100 1420 9001 | <b>ISN:</b>410*543 | <b>Skype:</b>briankwest</font></p></div></div></div></div></div></div></div></div>
</div>