<div dir="ltr">I can only guess you&#39;ve done something or are using something that isn&#39;t closing the FD, Can you elaborate on what kinds of elements you have in your call flow?  Conference, files, lua or some other scripts that might access files?<div><br></div><div>/b</div><div><br></div></div><div class="gmail_extra"><br><div class="gmail_quote">On Tue, Dec 6, 2016 at 9:44 AM, Caio Assis <span dir="ltr">&lt;<a href="mailto:caioebassis@hotmail.com" target="_blank">caioebassis@hotmail.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 id="m_7626522348722027534divtagdefaultwrapper" dir="ltr">
<p style="color:rgb(0,0,0);font-family:Calibri,Arial,Helvetica,sans-serif;font-size:12pt">
<span style="color:rgb(34,34,34);font-family:arial,sans-serif;font-size:12.8px">Good afternoon.</span></p>
<p style="color:rgb(0,0,0);font-family:Calibri,Arial,Helvetica,sans-serif;font-size:12pt">
<br>
</p>
<p style="color:rgb(0,0,0);font-family:Calibri,Arial,Helvetica,sans-serif;font-size:12pt">
Freeswitch info:</p>
<p><span style="color:rgb(34,34,34);font-family:arial,sans-serif;font-size:12.8px">Freeswitch version: Version 1.6.12  64bit</span><br style="color:rgb(34,34,34);font-family:arial,sans-serif;font-size:12.8px">
<span style="color:rgb(34,34,34);font-family:arial,sans-serif;font-size:12.8px">O.S: Centos 7</span><br style="color:rgb(34,34,34);font-family:arial,sans-serif;font-size:12.8px">
<span style="color:rgb(34,34,34);font-family:arial,sans-serif;font-size:12.8px">Processor: Xeon Six Core</span><br style="color:rgb(34,34,34);font-family:arial,sans-serif;font-size:12.8px">
<span style="color:rgb(34,34,34);font-family:arial,sans-serif;font-size:12.8px">RAM: 8GB</span><br style="color:rgb(34,34,34);font-family:arial,sans-serif;font-size:12.8px">
<span style="color:rgb(34,34,34);font-family:arial,sans-serif;font-size:12.8px">Disk: SSD samsung 850 pro</span><br style="color:rgb(34,34,34);font-family:arial,sans-serif;font-size:12.8px">
<br style="color:rgb(34,34,34);font-family:arial,sans-serif;font-size:12.8px">
<span style="color:rgb(34,34,34);font-family:arial,sans-serif;font-size:12.8px">I&#39;ve been facing a problem with freeswitch.</span><br style="color:rgb(34,34,34);font-family:arial,sans-serif;font-size:12.8px">
<span style="color:rgb(34,34,34);font-family:arial,sans-serif;font-size:12.8px">When I generate many calls (around 300 calls), Freeswitch service stops receiving socket connection after this error:</span><br style="color:rgb(34,34,34);font-family:arial,sans-serif;font-size:12.8px">
<br style="color:rgb(34,34,34);font-family:arial,sans-serif;font-size:12.8px">
<span style="color:rgb(34,34,34);font-family:arial,sans-serif;font-size:12.8px">[ERR] mod_event_socket.c:3017 Error initilizing connection</span><br style="color:rgb(34,34,34);font-family:arial,sans-serif;font-size:12.8px">
<span style="color:rgb(34,34,34);font-family:arial,sans-serif;font-size:12.8px">[CRIT] mod_event_socket.c:235 Stateful Listener 0 has expired</span><br style="color:rgb(34,34,34);font-family:arial,sans-serif;font-size:12.8px">
<span style="color:rgb(34,34,34);font-family:arial,sans-serif;font-size:12.8px">[ERR] mod_event_socket.c:2975 Socket Error [Too many open files]</span><br style="color:rgb(34,34,34);font-family:arial,sans-serif;font-size:12.8px">
<br style="color:rgb(34,34,34);font-family:arial,sans-serif;font-size:12.8px">
<br style="color:rgb(34,34,34);font-family:arial,sans-serif;font-size:12.8px">
<span style="color:rgb(34,34,34);font-family:arial,sans-serif;font-size:12.8px">I set the configuration below, but the problem persists and I have to restart the service to get it back up.</span></p>
<div>
<pre style="color:rgb(34,34,34);font-family:arial,sans-serif;font-size:12.8px;white-space:pre-wrap">ulimit -c unlimited # The maximum size of core files created.
ulimit -d unlimited # The maximum size of a process&#39;s data segment.
ulimit -f unlimited # The maximum size of files created by the shell (default option)
ulimit -i unlimited # The maximum number of pending signals
ulimit -n 999999    # The maximum number of open file descriptors.
ulimit -q unlimited # The maximum POSIX message queue size
ulimit -u unlimited # The maximum number of processes available to a single user.
ulimit -v unlimited # The maximum amount of virtual memory available to the process.
ulimit -x unlimited # ???
ulimit -s 240         # The maximum stack size
ulimit -l unlimited # The maximum size that may be locked into memory.
ulimit -a           # All current limits are reported.</pre>
<pre style="color:rgb(34,34,34);font-family:arial,sans-serif;font-size:12.8px;white-space:pre-wrap"><br></pre>
<pre style="color:rgb(34,34,34);font-family:arial,sans-serif;font-size:12.8px;white-space:pre-wrap">I can&#39;t execute any freeswitch command, fs_cli -x &quot;show calls&quot;, fs_cli -r, they all return that socket error.</pre>
<pre style="color:rgb(34,34,34);font-family:arial,sans-serif;font-size:12.8px;white-space:pre-wrap"><br></pre>
<pre style="color:rgb(34,34,34);font-family:arial,sans-serif;font-size:12.8px;white-space:pre-wrap">Thanks.</pre>
</div>
<p></p>
</div>
</div>

<br>______________________________<wbr>______________________________<wbr>_____________<br>
Professional FreeSWITCH Consulting Services:<br>
<a href="mailto:consulting@freeswitch.org">consulting@freeswitch.org</a><br>
<a href="http://www.freeswitchsolutions.com" rel="noreferrer" target="_blank">http://www.<wbr>freeswitchsolutions.com</a><br>
<br>
Official FreeSWITCH Sites<br>
<a href="http://www.freeswitch.org" rel="noreferrer" target="_blank">http://www.freeswitch.org</a><br>
<a href="http://confluence.freeswitch.org" rel="noreferrer" target="_blank">http://confluence.freeswitch.<wbr>org</a><br>
<a href="http://www.cluecon.com" rel="noreferrer" 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.<wbr>freeswitch.org</a><br>
<a href="http://lists.freeswitch.org/mailman/listinfo/freeswitch-users" rel="noreferrer" target="_blank">http://lists.freeswitch.org/<wbr>mailman/listinfo/freeswitch-<wbr>users</a><br>
UNSUBSCRIBE:<a href="http://lists.freeswitch.org/mailman/options/freeswitch-users" rel="noreferrer" target="_blank">http://lists.<wbr>freeswitch.org/mailman/<wbr>options/freeswitch-users</a><br>
<a href="http://www.freeswitch.org" rel="noreferrer" target="_blank">http://www.freeswitch.org</a><br></blockquote></div><br><br clear="all"><div><br></div>-- <br><div class="gmail_signature" data-smartmail="gmail_signature"><div dir="ltr"><div><div dir="ltr"><div><div dir="ltr"><div><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> (50% Discount using code FreeSwitch50)<br><a href="http://www.freeswitchcookbook.com" target="_blank">http://www.freeswitchcookbook.com</a> </font><span style="font-family:monospace,monospace;font-size:small">(50% Discount using code FreeSwitch50)</span><font size="2" face="monospace, monospace"><br></font><a href="https://www.gofundme.com/freeswitch_ubuntu" style="font-size:12.8px" target="_blank"><font face="monospace, monospace">https://www.gofundme.com/freeswitch_ubuntu</font></a></p><p><font face="monospace, monospace">Got Bugs? Report them <a href="https://freeswitch.org/jira" target="_blank">here</a>! | 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></div></div></div></div></div>
</div>