ejabberd - Comments for "Running ejabberd server - topped at 30k connections how could i get more. " https://www.ejabberd.im/node/23627 en Running ejabberd server - https://www.ejabberd.im/node/23627#comment-65246 <p>Typically, this kind of limitation is indeed related to Linux OS tuning.</p> Sat, 21 Feb 2015 10:06:42 +0000 mremond comment 65246 at https://www.ejabberd.im I ran into the same problem, https://www.ejabberd.im/node/23627#comment-65243 <p>I ran into the same problem, I managed to find the first weakest link in the chain: TCP ports.</p> <p>Running:<br /> <code>sysctl -a | grep net.ipv4.ip_local_port_range</code><br /> Shows:<br /> <code>net.ipv4.ip_local_port_range = 32768 61000</code><br /> 61000-32768=28232 -&gt; 28k connection limit...<br /> Lowering 32768 and increasing 61000 will increase connection limit but will again be limited at theoretically 65536 connections.</p> <p>Getting past those limits you'll have to use clustering capabilities in Tsung.<br /> I believe Tsung has support for using multiple IPs which could multiply the amount of maximum connections by the amount of IPs used.</p> Thu, 19 Feb 2015 11:48:26 +0000 xaho comment 65243 at https://www.ejabberd.im