<p>For udp i used sipp and for tcp i used libnet-sip-perl. I think tcp max connections was 819200, max open files was 1024000. Also i used 6 machines to produce this load. The test lasted 30 minutes.</p>
<p>Thank you.<br></p>
<p>On Oct 1, 2012 6:13 PM, &quot;Ali Pey&quot; &lt;<a href="mailto:alipey@gmail.com">alipey@gmail.com</a>&gt; wrote:<br>
&gt;<br>
&gt; Thanks Muhammad. These are great information. Thank you sharing it with us.<br>
&gt;<br>
&gt; Two follow up questions:<br>
&gt; 1- What tool did you use to send registers over TCP and keep connections open?<br>
&gt; 2- What did you set tcp_max_connections to in opensips?<br>
&gt;<br>
&gt; Regards,<br>
&gt; Ali Pey<br>
&gt;<br>
&gt;<br>
&gt; On Sat, Sep 29, 2012 at 10:59 AM, Muhammad Shahzad &lt;<a href="mailto:shaheryarkh@googlemail.com">shaheryarkh@googlemail.com</a>&gt; wrote:<br>
&gt;&gt;<br>
&gt;&gt; Every thing is a file in UNIX / Linux, so every TCP connection is a file too. Also persistent connects are sometime memory intensive too. So make sure adjust following things carefully.<br>
&gt;&gt;<br>
&gt;&gt; 1. Number of Open Files Limit, use either ulimit -n &lt;number&gt; in opensips startup script or set open_files_limit in global section on opensips dial plan. I usually use second options and set open_files_limit to 1024000.<br>

&gt;&gt; 2. Increase TCP children, tcp_children, default is i think 8, increase it to 16 or even 32 if you have very large deployment, this will speed up connection processing significantly, however consume much more memory. Also make sure to set all other TCP related opensips variables to reasonable values, such as tcp_connect_timeout, tcp_connection_lifetime etc. etc. Look here for details,<br>

&gt;&gt;<br>
&gt;&gt; <a href="http://www.opensips.org/Resources/DocsCoreFcn18#toc75">http://www.opensips.org/Resources/DocsCoreFcn18#toc75</a><br>
&gt;&gt;<br>
&gt;&gt; 3. If you have a dedicated SIP server, running only OpenSIPs then reduce stack size as well. I found setting it to 1024KB or even less gives good results.<br>
&gt;&gt;<br>
&gt;&gt; Now some practical results. On Dell server R510 with 8GB RAM and 2.4GHz quad core Intel processor I was able to test 104,981 concurrent SIP registrations with load average between 1.0 to 1.5.<br>
&gt;&gt;<br>
&gt;&gt; Two important things to remember.<br>
&gt;&gt;<br>
&gt;&gt; 1. What is estimated / expected number of requests per second?<br>
&gt;&gt; 2. What is SIP re-register time?<br>
&gt;&gt;<br>
&gt;&gt; For me, i tested up to 350 requests per second with re-register time as 300 seconds this gives theoretically possible concurrent SIP connections to 350 x 300 = 105,000. Which means you can&#39;t have more then this number of concurrent connections. So i can safely say per my testing that opensips can practically handle up to ~100K SIP concurrent connections.<br>

&gt;&gt;<br>
&gt;&gt; Thank you.<br>
&gt;&gt;<br>
&gt;&gt;<br>
&gt;&gt; On Fri, Sep 28, 2012 at 7:21 PM, Ali Pey &lt;<a href="mailto:alipey@gmail.com">alipey@gmail.com</a>&gt; wrote:<br>
&gt;&gt;&gt;<br>
&gt;&gt;&gt; I am also interested in this. Any responds/updates?<br>
&gt;&gt;&gt;<br>
&gt;&gt;&gt; Regards,<br>
&gt;&gt;&gt; Ali Pey<br>
&gt;&gt;&gt;<br>
&gt;&gt;&gt;<br>
&gt;&gt;&gt; On Wed, Sep 12, 2012 at 9:34 AM, John Quick &lt;<a href="mailto:john.quick@smartvox.co.uk">john.quick@smartvox.co.uk</a>&gt; wrote:<br>
&gt;&gt;&gt;&gt;<br>
&gt;&gt;&gt;&gt; Does anyone know what the practical limit is for the maximum number of TCP<br>
&gt;&gt;&gt;&gt; connections to OpenSIPS?<br>
&gt;&gt;&gt;&gt; It is a question that often comes up with clients who are developing<br>
&gt;&gt;&gt;&gt; SIP-based apps for smart phones. Persistent TCP seems to be strongly<br>
&gt;&gt;&gt;&gt; favoured over UDP for connections with mobile devices such as iPhone, iPad,<br>
&gt;&gt;&gt;&gt; etc. However, I cannot even get OpenSIPS to start if I set<br>
&gt;&gt;&gt;&gt; tcp_max_connections to a number greater than about 55000. Have tried it with<br>
&gt;&gt;&gt;&gt; v1.7 and 1.8. Is there a way to overcome this ceiling? Has anyone tested it<br>
&gt;&gt;&gt;&gt; with 10&#39;s of thousands of TCP connections?<br>
&gt;&gt;&gt;&gt;<br>
&gt;&gt;&gt;&gt; John Quick<br>
&gt;&gt;&gt;&gt; Smartvox Limited<br>
&gt;&gt;&gt;&gt;<br>
&gt;&gt;&gt;&gt;<br>
&gt;&gt;&gt;&gt;<br>
&gt;&gt;&gt;&gt;<br>
&gt;&gt;&gt;&gt; _______________________________________________<br>
&gt;&gt;&gt;&gt; Users mailing list<br>
&gt;&gt;&gt;&gt; <a href="mailto:Users@lists.opensips.org">Users@lists.opensips.org</a><br>
&gt;&gt;&gt;&gt; <a href="http://lists.opensips.org/cgi-bin/mailman/listinfo/users">http://lists.opensips.org/cgi-bin/mailman/listinfo/users</a><br>
&gt;&gt;&gt;<br>
&gt;&gt;&gt;<br>
&gt;&gt;&gt;<br>
&gt;&gt;&gt; _______________________________________________<br>
&gt;&gt;&gt; Users mailing list<br>
&gt;&gt;&gt; <a href="mailto:Users@lists.opensips.org">Users@lists.opensips.org</a><br>
&gt;&gt;&gt; <a href="http://lists.opensips.org/cgi-bin/mailman/listinfo/users">http://lists.opensips.org/cgi-bin/mailman/listinfo/users</a><br>
&gt;&gt;&gt;<br>
&gt;&gt;<br>
&gt;&gt;<br>
&gt;&gt;<br>
&gt;&gt; -- <br>
&gt;&gt; Muhammad Shahzad<br>
&gt;&gt; -----------------------------------<br>
&gt;&gt; CISCO Rich Media Communication Specialist (CRMCS)<br>
&gt;&gt; CISCO Certified Network Associate (CCNA)<br>
&gt;&gt; Cell: +92 334 422 40 88<br>
&gt;&gt; MSN: <a href="mailto:shari_786pk@hotmail.com">shari_786pk@hotmail.com</a><br>
&gt;&gt; Email: <a href="mailto:shaheryarkh@googlemail.com">shaheryarkh@googlemail.com</a><br>
&gt;&gt;<br>
&gt;&gt;<br>
&gt;&gt; _______________________________________________<br>
&gt;&gt; Users mailing list<br>
&gt;&gt; <a href="mailto:Users@lists.opensips.org">Users@lists.opensips.org</a><br>
&gt;&gt; <a href="http://lists.opensips.org/cgi-bin/mailman/listinfo/users">http://lists.opensips.org/cgi-bin/mailman/listinfo/users</a><br>
&gt;&gt;<br>
&gt;<br>
&gt;<br>
&gt; _______________________________________________<br>
&gt; Users mailing list<br>
&gt; <a href="mailto:Users@lists.opensips.org">Users@lists.opensips.org</a><br>
&gt; <a href="http://lists.opensips.org/cgi-bin/mailman/listinfo/users">http://lists.opensips.org/cgi-bin/mailman/listinfo/users</a><br>
&gt;<br>
</p>