<div>Trustin,</div>
<div> </div>
<div>I already tried that. I tried to increase &#39;nofile&#39; to 90000 both in /etc/security/limits.conf (and restart my Centos in VMware) and on the fly for a perticular termal session by &#39;ulimit -n 90000&#39; command. None of them work for me.</div>

<div> </div>
<div>The exception I got was &quot;java.net.ConnectException: Connection refused: no further information..&quot;, not &quot;Too many open files...&quot; althouth I seem to hear that file descriptors, connections and thread might share this same limit.</div>

<div> </div>
<div>This problem blocked me for days. And it doesn&#39;t seem to be the limit on http server side because I tried to use the same Netty http client to hit differnt server and had the same problem.</div>
<div> </div>
<div>Thanks for your help. Appreciated it.</div>
<div> </div>
<div>Jason<br><br></div>
<div class="gmail_quote">On Thu, Sep 17, 2009 at 5:06 PM, Trustin Lee (이희승) <span dir="ltr">&lt;<a href="mailto:trustin@gmail.com">trustin@gmail.com</a>&gt;</span> wrote:<br>
<blockquote class="gmail_quote" style="PADDING-LEFT: 1ex; MARGIN: 0px 0px 0px 0.8ex; BORDER-LEFT: #ccc 1px solid">I hope this post answers the first question.<br><br><a href="http://gleamynode.net/articles/1557/" target="_blank">http://gleamynode.net/articles/1557/</a><br>
<br>I&#39;m not sure about the other questions though. :)<br><br>— Trustin Lee, <a href="http://gleamynode.net/" target="_blank">http://gleamynode.net/</a><br>
<div>
<div></div>
<div class="h5"><br><br><br>On Fri, Sep 18, 2009 at 2:37 AM, Michael McGrady<br>&lt;<a href="mailto:mmcgrady@topiatechnology.com">mmcgrady@topiatechnology.com</a>&gt; wrote:<br>&gt; What is the impact of changing these settings?  Why is the default low<br>
&gt; instead of hight?  And, any other questions I should be asking before<br>&gt; changing this configuration?<br>&gt; MIke<br>&gt; On Sep 17, 2009, at 10:34 AM, J. Mi wrote:<br>&gt;<br>&gt; H Thomas,<br>&gt;<br>&gt; Thanks for the lead. To be able to have more connections before seeing<br>
&gt; &quot;java.net.ConnectException: Connection refused...&quot;, which configuration I<br>&gt; need to change in /etc/security/limits.conf? I added<br>&gt; * soft nofile 20000<br>&gt; * hard nofile 20000<br>&gt;<br>&gt; and first time just tried to re-login, the new limit didn&#39;t work for me for<br>
&gt; more connections. I then tried to restart my VMware. It still didn&#39;t work<br>&gt; for me<br>&gt;<br>&gt; Does &#39;nofile&#39; (max number of open files) have anything to do with socket<br>&gt; connections?<br>&gt;<br>
&gt; Appreciate if you or anyone else can guide me more on this.<br>&gt; btw, if any of you know any equivalent OS settings on Windows, i&#39;ll try that<br>&gt; as well.<br>&gt;<br>&gt; Jason<br>&gt;<br>&gt;<br>&gt; On Wed, Sep 16, 2009 at 3:38 PM, Thomas Bocek &lt;<a href="mailto:bocek@ifi.uzh.ch">bocek@ifi.uzh.ch</a>&gt; wrote:<br>
&gt;&gt;<br>&gt;&gt; Hi J.,<br>&gt;&gt;<br>&gt;&gt; This might be a limitation of the OS. If you are using for example<br>&gt;&gt; Linux, then you can only open about 1000 connections before seeing &quot;too<br>&gt;&gt; many open files in system&quot; error messages. You can adjust the value in<br>
&gt;&gt; /etc/security/limits.conf<br>&gt;&gt;<br>&gt;&gt; Thomas<br>&gt;&gt;<br>&gt;&gt; J. Mi wrote:<br>&gt;&gt; &gt; All,<br>&gt;&gt; &gt;<br>&gt;&gt; &gt; I get following exception pretty consistently when trying to<br>
&gt;&gt; &gt; concurrently<br>&gt;&gt; &gt; connect about 800 connections.<br>&gt;&gt; &gt;<br>&gt;&gt; &gt; Any idea? Is this something out of Netty&#39;s control? If so, is there some<br>&gt;&gt; &gt; configuration I could do to JVM or operating system to increase resource<br>
&gt;&gt; &gt; capacity?<br>&gt;&gt; &gt;<br>&gt;&gt; &gt; Thanks,<br>&gt;&gt; &gt; Jason<br>&gt;&gt; &gt;<br>&gt;&gt; &gt; java.net.ConnectException: Connection refused: no further information<br>&gt;&gt; &gt;         at sun.nio.ch.SocketChannelImpl.checkConnect(Native Method)<br>
&gt;&gt; &gt;         at sun.nio.ch.SocketChannelImpl.finishConnect(Unknown Source)<br>&gt;&gt; &gt;         at<br>&gt;&gt; &gt;<br>&gt;&gt; &gt; org.jboss.netty.channel.socket.nio.NioClientSocketPipelineSink$Boss.connect(NioClientSocketPipelineSink.java:381)<br>
&gt;&gt; &gt;         at<br>&gt;&gt; &gt;<br>&gt;&gt; &gt; org.jboss.netty.channel.socket.nio.NioClientSocketPipelineSink$Boss.processSelectedKeys(NioClientSocketPipelineSink.java:351)<br>&gt;&gt; &gt;         at<br>&gt;&gt; &gt;<br>
&gt;&gt; &gt; org.jboss.netty.channel.socket.nio.NioClientSocketPipelineSink$Boss.run(NioClientSocketPipelineSink.java:273)<br>&gt;&gt; &gt;         at<br>&gt;&gt; &gt;<br>&gt;&gt; &gt; org.jboss.netty.util.ThreadRenamingRunnable.run(ThreadRenamingRunnable.java:113)<br>
&gt;&gt; &gt;         at<br>&gt;&gt; &gt;<br>&gt;&gt; &gt; org.jboss.netty.util.internal.IoWorkerRunnable.run(IoWorkerRunnable.java:53)<br>&gt;&gt; &gt;         at<br>&gt;&gt; &gt; java.util.concurrent.ThreadPoolExecutor$Worker.runTask(Unknown<br>
&gt;&gt; &gt; Source)<br>&gt;&gt; &gt;         at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown<br>&gt;&gt; &gt; Source)<br>&gt;&gt; &gt;         at java.lang.Thread.run(Unknown Source)<br>&gt;&gt; &gt;<br>&gt;&gt; &gt;<br>
&gt;&gt; &gt;<br>&gt;&gt; &gt; ------------------------------------------------------------------------<br>&gt;&gt; &gt;<br>&gt;&gt; &gt; _______________________________________________<br>&gt;&gt; &gt; netty-dev mailing list<br>
&gt;&gt; &gt; <a href="mailto:netty-dev@lists.jboss.org">netty-dev@lists.jboss.org</a><br>&gt;&gt; &gt; <a href="https://lists.jboss.org/mailman/listinfo/netty-dev" target="_blank">https://lists.jboss.org/mailman/listinfo/netty-dev</a><br>
&gt;&gt; _______________________________________________<br>&gt;&gt; netty-dev mailing list<br>&gt;&gt; <a href="mailto:netty-dev@lists.jboss.org">netty-dev@lists.jboss.org</a><br>&gt;&gt; <a href="https://lists.jboss.org/mailman/listinfo/netty-dev" target="_blank">https://lists.jboss.org/mailman/listinfo/netty-dev</a><br>
&gt;<br>&gt; _______________________________________________<br>&gt; netty-dev mailing list<br>&gt; <a href="mailto:netty-dev@lists.jboss.org">netty-dev@lists.jboss.org</a><br>&gt; <a href="https://lists.jboss.org/mailman/listinfo/netty-dev" target="_blank">https://lists.jboss.org/mailman/listinfo/netty-dev</a><br>
&gt;<br>&gt; Mike McGrady<br>&gt; Principal Investigator AF081-028 AFRL SBIR<br>&gt; Senior Engineer<br>&gt; Topia Technology, Inc<br>&gt; 1.253.720.3365<br>&gt; <a href="mailto:mmcgrady@topiatechnology.com">mmcgrady@topiatechnology.com</a><br>
&gt;<br>&gt;<br>&gt;<br>&gt;<br>&gt;<br>&gt;<br>&gt;<br>&gt; _______________________________________________<br>&gt; netty-dev mailing list<br>&gt; <a href="mailto:netty-dev@lists.jboss.org">netty-dev@lists.jboss.org</a><br>
&gt; <a href="https://lists.jboss.org/mailman/listinfo/netty-dev" target="_blank">https://lists.jboss.org/mailman/listinfo/netty-dev</a><br>&gt;<br>&gt;<br><br>_______________________________________________<br>netty-dev mailing list<br>
<a href="mailto:netty-dev@lists.jboss.org">netty-dev@lists.jboss.org</a><br><a href="https://lists.jboss.org/mailman/listinfo/netty-dev" target="_blank">https://lists.jboss.org/mailman/listinfo/netty-dev</a><br></div></div>
</blockquote></div><br>