Yes<br><br>fs.file-max = 65535<br> <br>James<br> <br><br>On Mon, Mar 8, 2010 at 2:21 PM, powderhound &lt;<a href="mailto:nginx-forum@nginx.us">nginx-forum@nginx.us</a>&gt; wrote:<br>&gt;<br>&gt; &gt; When I run the benchmark with keepalive_timeout 65, nginx is<br>
&gt; &gt; very slow (5-20 seconds delay) to accept new connections as soon<br>&gt; &gt; as it reaches 1500 concurrent connections. It plateaus here: it<br>&gt; &gt; completes all the requests but it never exceeds approximately<br>
&gt; &gt; 1500 concurrent connections.<br>&gt;<br>&gt; Most likely you hit some network-related limit of your OS or some<br>&gt; firewall inbetween. Check if firewalls have enough number of<br>&gt; state entries, your OS isn&#39;t limited by number of sockets, network<br>
&gt; buffers and so on.<br>&gt;<br>&gt;<br>&gt; Thank you for replying.  I should have mentioned, I have tested<br>&gt; with firewall completely disabled and the following sysctls which<br>&gt; I believe should be sufficient.<br>
&gt;<br>&gt; net.core.rmem_max = 16777216<br>&gt; net.core.rmem_default = 16777216<br>&gt; net.core.wmem_max = 16777216<br>&gt; net.core.wmem_default = 16777216<br>&gt; net.core.netdev_max_backlog = 262144<br>&gt; net.core.somaxconn = 262144<br>
&gt; net.ipv4.tcp_syncookies = 1<br>&gt; net.ipv4.tcp_max_orphans = 262144<br>&gt; net.ipv4.tcp_max_syn_backlog = 262144<br>&gt; net.ipv4.tcp_synack_retries = 2<br>&gt; net.ipv4.tcp_syn_retries = 2<br>&gt;<br>&gt; Is there anything else I can try?<br>
&gt;<br>&gt; Thanks!<br>&gt; Steve<br>&gt;<br>&gt; Posted at Nginx Forum: <a href="http://forum.nginx.org/read.php?2,61482,61624#msg-61624">http://forum.nginx.org/read.php?2,61482,61624#msg-61624</a><br>&gt;<br>&gt;<br>&gt; _______________________________________________<br>
&gt; nginx mailing list<br>&gt; <a href="mailto:nginx@nginx.org">nginx@nginx.org</a><br>&gt; <a href="http://nginx.org/mailman/listinfo/nginx">http://nginx.org/mailman/listinfo/nginx</a><br><br><br><br>--<br><a href="http://www.miami-criminallaw.com">http://www.miami-criminallaw.com</a><br>
<br>--<br><br><br><br><br><br>