<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<style type="text/css" style="display:none;"><!-- P {margin-top:0;margin-bottom:0;} --></style>
</head>
<body dir="ltr">
<div id="divtagdefaultwrapper" dir="ltr" style="">
<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 style=""><span style="color: rgb(34, 34, 34); font-family: arial, sans-serif; font-size: 12.8px;">Freeswitch version: Version 1.6.12&nbsp; 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've been facing&nbsp;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&nbsp;calls (around&nbsp;300 calls), Freeswitch service stops receiving&nbsp;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 style="">
<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'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 #&nbsp;???
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'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>
</body>
</html>