<div dir="ltr">There are for sure some important performance issues between 1.2.8 and latest stable.<div>There even more in master.</div></div><div class="gmail_extra"><br><br><div class="gmail_quote">On Fri, Dec 13, 2013 at 3:26 PM, Tim St. Pierre <span dir="ltr">&lt;<a href="mailto:fs-list@communicatefreely.net" target="_blank">fs-list@communicatefreely.net</a>&gt;</span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">I thought that too, but I ran a ping test against the machine (to that<br>
interface) when it happened.  It didn&#39;t lose a single packet.<br>
<br>
-Tim<br>
<div class="im"><br>
On 13-12-13 04:19 PM, Lloyd Aloysius wrote:<br>
&gt; Tim<br>
&gt;<br>
&gt; I would first check the connectivity<br>
&gt;<br>
&gt; Switch ports?<br>
&gt;<br>
&gt; Lloyd<br>
&gt;<br>
&gt; On Dec 13, 2013 4:14 PM, &quot;Cal Leeming [Simplicity Media Ltd]&quot;<br>
&gt; &lt;<a href="mailto:cal.leeming@simplicitymedialtd.co.uk">cal.leeming@simplicitymedialtd.co.uk</a><br>
</div><div class="im">&gt; &lt;mailto:<a href="mailto:cal.leeming@simplicitymedialtd.co.uk">cal.leeming@simplicitymedialtd.co.uk</a>&gt;&gt; wrote:<br>
&gt;<br>
&gt;     I&#39;ll be on the FS conference call for the next 30 mins if you want<br>
&gt;     to ask any questions about this btw.<br>
&gt;<br>
&gt;     Cal<br>
&gt;<br>
&gt;<br>
&gt;     On Fri, Dec 13, 2013 at 9:10 PM, Cal Leeming [Simplicity Media Ltd]<br>
&gt;     &lt;<a href="mailto:cal.leeming@simplicitymedialtd.co.uk">cal.leeming@simplicitymedialtd.co.uk</a><br>
</div><div class="im">&gt;     &lt;mailto:<a href="mailto:cal.leeming@simplicitymedialtd.co.uk">cal.leeming@simplicitymedialtd.co.uk</a>&gt;&gt; wrote:<br>
&gt;<br>
&gt;<br>
&gt;<br>
&gt;<br>
&gt;         On Fri, Dec 13, 2013 at 8:37 PM, Tim St. Pierre<br>
&gt;         &lt;<a href="mailto:fs-list@communicatefreely.net">fs-list@communicatefreely.net</a><br>
</div><div><div class="h5">&gt;         &lt;mailto:<a href="mailto:fs-list@communicatefreely.net">fs-list@communicatefreely.net</a>&gt;&gt; wrote:<br>
&gt;<br>
&gt;             Hello,<br>
&gt;<br>
&gt;             I&#39;m having a problem where FS seems to exhaust it&#39;s open<br>
&gt;             file limit<br>
&gt;             after about 7 hours of operation.  Once this happens, the<br>
&gt;             database and<br>
&gt;             curl connections no longer function, and I usually lose the<br>
&gt;             ability to<br>
&gt;             get a CLI connection.  Existing calls usually stay up, until<br>
&gt;             I kill -9<br>
&gt;             and launch again.<br>
&gt;<br>
&gt;             I&#39;m using FreeSWITCH Version<br>
&gt;             1.2.8+git~20130403T221701Z~79be96aa8e<br>
&gt;             on Centos 2.6.18-348.el5<br>
&gt;<br>
&gt;             This machine had been running solid for at least 90 days<br>
&gt;             without a hitch<br>
&gt;             - I had almost hit 500K sessions, when this started<br>
&gt;             happening two days<br>
&gt;             ago.  I have changed very little on the machine - the odd<br>
&gt;             dialplan<br>
&gt;             route, and nothing that seems to coincide with that time.<br>
&gt;<br>
&gt;<br>
&gt;             It looks like CURL is not closing sockets properly, as<br>
&gt;             netstat shows<br>
&gt;             between 2000 - 4000 http connections in TIME_WAIT state.<br>
&gt;              The number<br>
&gt;             slowly creeps up, then down a little, then up some more<br>
&gt;             until it all<br>
&gt;             comes crashing down.<br>
&gt;<br>
&gt;<br>
&gt;         Can you confirm if your web server is responding to the requests?<br>
&gt;<br>
&gt;         One possible explanation is this spike in traffic caused<br>
&gt;         excessive requests which your web server could not handle, and<br>
&gt;         thus you hit the ulimit.<br>
&gt;<br>
&gt;         You could increase the ulimit (or set it to unlimited) as per;<br>
&gt;         <a href="http://www.cyberciti.biz/faq/linux-increase-the-maximum-number-of-open-files/" target="_blank">http://www.cyberciti.biz/faq/linux-increase-the-maximum-number-of-open-files/</a><br>
&gt;<br>
&gt;         However, if your web server is struggling to keep up with the<br>
&gt;         work load then increasing the max open files will just make the<br>
&gt;         problem worse. Increasing is fine, as long as your web server<br>
&gt;         can keep up with the load, otherwise it will just continue to<br>
&gt;         snowball.<br>
&gt;<br>
&gt;         Try installing some profiling tools on your web server to<br>
&gt;         monitor the stats, you can use something like New Relic or<br>
&gt;         AppNeta for this, or even just change your access log to output<br>
&gt;         the loading/response times into your access log, then look for<br>
&gt;         high response times.<br>
&gt;<br>
&gt;         You can also tweak kernel TCP stack settings as per;<br>
&gt;         <a href="http://www.cyberciti.biz/faq/linux-command-forcibly-close-socket-ports-in-time_wait-state/" target="_blank">http://www.cyberciti.biz/faq/linux-command-forcibly-close-socket-ports-in-time_wait-state/</a><br>

&gt;<br>
&gt;         Hope this helps<br>
&gt;<br>
&gt;<br>
&gt;<br>
&gt;             ls /proc/15742/fd|wc -l currently returns about 400.  It was<br>
&gt;             300 an hour<br>
&gt;             ago.  When it gets to 1024, I&#39;m going to have to restart again.<br>
&gt;<br>
&gt;             Any suggestions as to where I should look?<br>
&gt;<br>
&gt;             -Tim<br>
&gt;<br>
&gt;             _________________________________________________________________________<br>
&gt;             Professional FreeSWITCH Consulting Services:<br>
</div></div>&gt;             <a href="mailto:consulting@freeswitch.org">consulting@freeswitch.org</a> &lt;mailto:<a href="mailto:consulting@freeswitch.org">consulting@freeswitch.org</a>&gt;<br>
<div class="im">&gt;             <a href="http://www.freeswitchsolutions.com" target="_blank">http://www.freeswitchsolutions.com</a><br>
&gt;<br>
&gt;             FreeSWITCH-powered IP PBX: The CudaTel Communication Server<br>
&gt;             <a href="http://www.cudatel.com" target="_blank">http://www.cudatel.com</a><br>
&gt;<br>
&gt;             Official FreeSWITCH Sites<br>
&gt;             <a href="http://www.freeswitch.org" target="_blank">http://www.freeswitch.org</a><br>
&gt;             <a href="http://wiki.freeswitch.org" target="_blank">http://wiki.freeswitch.org</a><br>
&gt;             <a href="http://www.cluecon.com" target="_blank">http://www.cluecon.com</a><br>
&gt;<br>
&gt;             FreeSWITCH-users mailing list<br>
&gt;             <a href="mailto:FreeSWITCH-users@lists.freeswitch.org">FreeSWITCH-users@lists.freeswitch.org</a><br>
</div>&gt;             &lt;mailto:<a href="mailto:FreeSWITCH-users@lists.freeswitch.org">FreeSWITCH-users@lists.freeswitch.org</a>&gt;<br>
<div class="im">&gt;             <a href="http://lists.freeswitch.org/mailman/listinfo/freeswitch-users" target="_blank">http://lists.freeswitch.org/mailman/listinfo/freeswitch-users</a><br>
&gt;             UNSUBSCRIBE:<a href="http://lists.freeswitch.org/mailman/options/freeswitch-users" target="_blank">http://lists.freeswitch.org/mailman/options/freeswitch-users</a><br>
&gt;             <a href="http://www.freeswitch.org" target="_blank">http://www.freeswitch.org</a><br>
&gt;<br>
&gt;<br>
&gt;<br>
&gt;<br>
&gt;     _________________________________________________________________________<br>
&gt;     Professional FreeSWITCH Consulting Services:<br>
</div>&gt;     <a href="mailto:consulting@freeswitch.org">consulting@freeswitch.org</a> &lt;mailto:<a href="mailto:consulting@freeswitch.org">consulting@freeswitch.org</a>&gt;<br>
<div class="im">&gt;     <a href="http://www.freeswitchsolutions.com" target="_blank">http://www.freeswitchsolutions.com</a><br>
&gt;<br>
&gt;     FreeSWITCH-powered IP PBX: The CudaTel Communication Server<br>
&gt;     <a href="http://www.cudatel.com" target="_blank">http://www.cudatel.com</a><br>
&gt;<br>
&gt;     Official FreeSWITCH Sites<br>
&gt;     <a href="http://www.freeswitch.org" target="_blank">http://www.freeswitch.org</a><br>
&gt;     <a href="http://wiki.freeswitch.org" target="_blank">http://wiki.freeswitch.org</a><br>
&gt;     <a href="http://www.cluecon.com" target="_blank">http://www.cluecon.com</a><br>
&gt;<br>
&gt;     FreeSWITCH-users mailing list<br>
&gt;     <a href="mailto:FreeSWITCH-users@lists.freeswitch.org">FreeSWITCH-users@lists.freeswitch.org</a><br>
</div>&gt;     &lt;mailto:<a href="mailto:FreeSWITCH-users@lists.freeswitch.org">FreeSWITCH-users@lists.freeswitch.org</a>&gt;<br>
<div class="HOEnZb"><div class="h5">&gt;     <a href="http://lists.freeswitch.org/mailman/listinfo/freeswitch-users" target="_blank">http://lists.freeswitch.org/mailman/listinfo/freeswitch-users</a><br>
&gt;     UNSUBSCRIBE:<a href="http://lists.freeswitch.org/mailman/options/freeswitch-users" target="_blank">http://lists.freeswitch.org/mailman/options/freeswitch-users</a><br>
&gt;     <a href="http://www.freeswitch.org" target="_blank">http://www.freeswitch.org</a><br>
&gt;<br>
&gt;<br>
&gt;<br>
&gt; _________________________________________________________________________<br>
&gt; Professional FreeSWITCH Consulting Services:<br>
&gt; <a href="mailto:consulting@freeswitch.org">consulting@freeswitch.org</a><br>
&gt; <a href="http://www.freeswitchsolutions.com" target="_blank">http://www.freeswitchsolutions.com</a><br>
&gt;<br>
&gt; FreeSWITCH-powered IP PBX: The CudaTel Communication Server<br>
&gt; <a href="http://www.cudatel.com" target="_blank">http://www.cudatel.com</a><br>
&gt;<br>
&gt; Official FreeSWITCH Sites<br>
&gt; <a href="http://www.freeswitch.org" target="_blank">http://www.freeswitch.org</a><br>
&gt; <a href="http://wiki.freeswitch.org" target="_blank">http://wiki.freeswitch.org</a><br>
&gt; <a href="http://www.cluecon.com" target="_blank">http://www.cluecon.com</a><br>
&gt;<br>
&gt; FreeSWITCH-users mailing list<br>
&gt; <a href="mailto:FreeSWITCH-users@lists.freeswitch.org">FreeSWITCH-users@lists.freeswitch.org</a><br>
&gt; <a href="http://lists.freeswitch.org/mailman/listinfo/freeswitch-users" target="_blank">http://lists.freeswitch.org/mailman/listinfo/freeswitch-users</a><br>
&gt; UNSUBSCRIBE:<a href="http://lists.freeswitch.org/mailman/options/freeswitch-users" target="_blank">http://lists.freeswitch.org/mailman/options/freeswitch-users</a><br>
&gt; <a href="http://www.freeswitch.org" target="_blank">http://www.freeswitch.org</a><br>
&gt;<br>
<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>
FreeSWITCH-powered IP PBX: The CudaTel Communication Server<br>
<a href="http://www.cudatel.com" target="_blank">http://www.cudatel.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://wiki.freeswitch.org" target="_blank">http://wiki.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>
</div></div></blockquote></div><br><br clear="all"><div><br></div>-- <br><div dir="ltr">Anthony Minessale II       ♬ @anthmfs  ♬ @FreeSWITCH  ♬<div><br><div>☞ <a href="http://freeswitch.org/" target="_blank">http://freeswitch.org/</a>  ☞ <a href="http://cluecon.com/" target="_blank">http://cluecon.com/</a>  ☞ <a href="http://twitter.com/FreeSWITCH" target="_blank">http://twitter.com/FreeSWITCH</a></div>
<div><div>☞ <a href="http://irc.freenode.net" target="_blank">irc.freenode.net</a> #freeswitch ☞ <u><a href="http://freeswitch.org/g+" target="_blank">http://freeswitch.org/g+</a></u><br><br></div><div>ClueCon Weekly Development Call <br>
</div><div>☎ <a href="mailto:sip%3A888@conference.freeswitch.org" target="_blank">sip:888@conference.freeswitch.org</a>  ☎ +19193869900 </div><div><br></div></div></div></div>
</div>