<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, "Ali Pey" <<a href="mailto:alipey@gmail.com">alipey@gmail.com</a>> wrote:<br>
><br>
> Thanks Muhammad. These are great information. Thank you sharing it with us.<br>
><br>
> Two follow up questions:<br>
> 1- What tool did you use to send registers over TCP and keep connections open?<br>
> 2- What did you set tcp_max_connections to in opensips?<br>
><br>
> Regards,<br>
> Ali Pey<br>
><br>
><br>
> On Sat, Sep 29, 2012 at 10:59 AM, Muhammad Shahzad <<a href="mailto:shaheryarkh@googlemail.com">shaheryarkh@googlemail.com</a>> wrote:<br>
>><br>
>> 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>
>><br>
>> 1. Number of Open Files Limit, use either ulimit -n <number> 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>
>> 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>
>><br>
>> <a href="http://www.opensips.org/Resources/DocsCoreFcn18#toc75">http://www.opensips.org/Resources/DocsCoreFcn18#toc75</a><br>
>><br>
>> 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>
>><br>
>> 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>
>><br>
>> Two important things to remember.<br>
>><br>
>> 1. What is estimated / expected number of requests per second?<br>
>> 2. What is SIP re-register time?<br>
>><br>
>> 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'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>
>><br>
>> Thank you.<br>
>><br>
>><br>
>> On Fri, Sep 28, 2012 at 7:21 PM, Ali Pey <<a href="mailto:alipey@gmail.com">alipey@gmail.com</a>> wrote:<br>
>>><br>
>>> I am also interested in this. Any responds/updates?<br>
>>><br>
>>> Regards,<br>
>>> Ali Pey<br>
>>><br>
>>><br>
>>> On Wed, Sep 12, 2012 at 9:34 AM, John Quick <<a href="mailto:john.quick@smartvox.co.uk">john.quick@smartvox.co.uk</a>> wrote:<br>
>>>><br>
>>>> Does anyone know what the practical limit is for the maximum number of TCP<br>
>>>> connections to OpenSIPS?<br>
>>>> It is a question that often comes up with clients who are developing<br>
>>>> SIP-based apps for smart phones. Persistent TCP seems to be strongly<br>
>>>> favoured over UDP for connections with mobile devices such as iPhone, iPad,<br>
>>>> etc. However, I cannot even get OpenSIPS to start if I set<br>
>>>> tcp_max_connections to a number greater than about 55000. Have tried it with<br>
>>>> v1.7 and 1.8. Is there a way to overcome this ceiling? Has anyone tested it<br>
>>>> with 10's of thousands of TCP connections?<br>
>>>><br>
>>>> John Quick<br>
>>>> Smartvox Limited<br>
>>>><br>
>>>><br>
>>>><br>
>>>><br>
>>>> _______________________________________________<br>
>>>> Users mailing list<br>
>>>> <a href="mailto:Users@lists.opensips.org">Users@lists.opensips.org</a><br>
>>>> <a href="http://lists.opensips.org/cgi-bin/mailman/listinfo/users">http://lists.opensips.org/cgi-bin/mailman/listinfo/users</a><br>
>>><br>
>>><br>
>>><br>
>>> _______________________________________________<br>
>>> Users mailing list<br>
>>> <a href="mailto:Users@lists.opensips.org">Users@lists.opensips.org</a><br>
>>> <a href="http://lists.opensips.org/cgi-bin/mailman/listinfo/users">http://lists.opensips.org/cgi-bin/mailman/listinfo/users</a><br>
>>><br>
>><br>
>><br>
>><br>
>> -- <br>
>> Muhammad Shahzad<br>
>> -----------------------------------<br>
>> CISCO Rich Media Communication Specialist (CRMCS)<br>
>> CISCO Certified Network Associate (CCNA)<br>
>> Cell: +92 334 422 40 88<br>
>> MSN: <a href="mailto:shari_786pk@hotmail.com">shari_786pk@hotmail.com</a><br>
>> Email: <a href="mailto:shaheryarkh@googlemail.com">shaheryarkh@googlemail.com</a><br>
>><br>
>><br>
>> _______________________________________________<br>
>> Users mailing list<br>
>> <a href="mailto:Users@lists.opensips.org">Users@lists.opensips.org</a><br>
>> <a href="http://lists.opensips.org/cgi-bin/mailman/listinfo/users">http://lists.opensips.org/cgi-bin/mailman/listinfo/users</a><br>
>><br>
><br>
><br>
> _______________________________________________<br>
> Users mailing list<br>
> <a href="mailto:Users@lists.opensips.org">Users@lists.opensips.org</a><br>
> <a href="http://lists.opensips.org/cgi-bin/mailman/listinfo/users">http://lists.opensips.org/cgi-bin/mailman/listinfo/users</a><br>
><br>
</p>