<div>Trustin,</div>
<div> </div>
<div>I already tried that. I tried to increase 'nofile' to 90000 both in /etc/security/limits.conf (and restart my Centos in VMware) and on the fly for a perticular termal session by 'ulimit -n 90000' command. None of them work for me.</div>
<div> </div>
<div>The exception I got was "java.net.ConnectException: Connection refused: no further information..", not "Too many open files..." 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'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"><<a href="mailto:trustin@gmail.com">trustin@gmail.com</a>></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'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><<a href="mailto:mmcgrady@topiatechnology.com">mmcgrady@topiatechnology.com</a>> wrote:<br>> What is the impact of changing these settings? Why is the default low<br>
> instead of hight? And, any other questions I should be asking before<br>> changing this configuration?<br>> MIke<br>> On Sep 17, 2009, at 10:34 AM, J. Mi wrote:<br>><br>> H Thomas,<br>><br>> Thanks for the lead. To be able to have more connections before seeing<br>
> "java.net.ConnectException: Connection refused...", which configuration I<br>> need to change in /etc/security/limits.conf? I added<br>> * soft nofile 20000<br>> * hard nofile 20000<br>><br>> and first time just tried to re-login, the new limit didn't work for me for<br>
> more connections. I then tried to restart my VMware. It still didn't work<br>> for me<br>><br>> Does 'nofile' (max number of open files) have anything to do with socket<br>> connections?<br>><br>
> Appreciate if you or anyone else can guide me more on this.<br>> btw, if any of you know any equivalent OS settings on Windows, i'll try that<br>> as well.<br>><br>> Jason<br>><br>><br>> On Wed, Sep 16, 2009 at 3:38 PM, Thomas Bocek <<a href="mailto:bocek@ifi.uzh.ch">bocek@ifi.uzh.ch</a>> wrote:<br>
>><br>>> Hi J.,<br>>><br>>> This might be a limitation of the OS. If you are using for example<br>>> Linux, then you can only open about 1000 connections before seeing "too<br>>> many open files in system" error messages. You can adjust the value in<br>
>> /etc/security/limits.conf<br>>><br>>> Thomas<br>>><br>>> J. Mi wrote:<br>>> > All,<br>>> ><br>>> > I get following exception pretty consistently when trying to<br>
>> > concurrently<br>>> > connect about 800 connections.<br>>> ><br>>> > Any idea? Is this something out of Netty's control? If so, is there some<br>>> > configuration I could do to JVM or operating system to increase resource<br>
>> > capacity?<br>>> ><br>>> > Thanks,<br>>> > Jason<br>>> ><br>>> > java.net.ConnectException: Connection refused: no further information<br>>> > at sun.nio.ch.SocketChannelImpl.checkConnect(Native Method)<br>
>> > at sun.nio.ch.SocketChannelImpl.finishConnect(Unknown Source)<br>>> > at<br>>> ><br>>> > org.jboss.netty.channel.socket.nio.NioClientSocketPipelineSink$Boss.connect(NioClientSocketPipelineSink.java:381)<br>
>> > at<br>>> ><br>>> > org.jboss.netty.channel.socket.nio.NioClientSocketPipelineSink$Boss.processSelectedKeys(NioClientSocketPipelineSink.java:351)<br>>> > at<br>>> ><br>
>> > org.jboss.netty.channel.socket.nio.NioClientSocketPipelineSink$Boss.run(NioClientSocketPipelineSink.java:273)<br>>> > at<br>>> ><br>>> > org.jboss.netty.util.ThreadRenamingRunnable.run(ThreadRenamingRunnable.java:113)<br>
>> > at<br>>> ><br>>> > org.jboss.netty.util.internal.IoWorkerRunnable.run(IoWorkerRunnable.java:53)<br>>> > at<br>>> > java.util.concurrent.ThreadPoolExecutor$Worker.runTask(Unknown<br>
>> > Source)<br>>> > at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown<br>>> > Source)<br>>> > at java.lang.Thread.run(Unknown Source)<br>>> ><br>>> ><br>
>> ><br>>> > ------------------------------------------------------------------------<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>
>> _______________________________________________<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>
><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>
><br>> Mike McGrady<br>> Principal Investigator AF081-028 AFRL SBIR<br>> Senior Engineer<br>> Topia Technology, Inc<br>> 1.253.720.3365<br>> <a href="mailto:mmcgrady@topiatechnology.com">mmcgrady@topiatechnology.com</a><br>
><br>><br>><br>><br>><br>><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>><br>><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>