<html><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; ">What is the impact of changing these settings? Why is the default low instead of hight? And, any other questions I should be asking before changing this configuration?<div><br></div><div>MIke</div><div><br><div><div>On Sep 17, 2009, at 10:34 AM, J. Mi wrote:</div><br class="Apple-interchange-newline"><blockquote type="cite"><div>H Thomas,</div> <div> </div> <div>Thanks for the lead. To be able to have more connections before seeing "java.net.ConnectException: Connection refused...", which configuration I need to change in /etc/security/limits.conf? I added</div> <div>* soft nofile 20000</div> <div>* hard nofile 20000</div> <div> </div> <div>and first time just tried to re-login, the new limit didn't work for me for more connections. I then tried to restart my VMware. It still didn't work for me</div> <div> </div> <div>Does 'nofile' (max number of open files) have anything to do with socket connections?</div> <div> </div> <div>Appreciate if you or anyone else can guide me more on this.</div> <div>btw, if any of you know any equivalent OS settings on Windows, i'll try that as well.</div> <div> </div> <div>Jason</div> <div><br><br> </div> <div class="gmail_quote">On Wed, Sep 16, 2009 at 3:38 PM, Thomas Bocek <span dir="ltr"><<a href="mailto:bocek@ifi.uzh.ch">bocek@ifi.uzh.ch</a>></span> wrote:<br> <blockquote class="gmail_quote" style="PADDING-LEFT: 1ex; MARGIN: 0px 0px 0px 0.8ex; BORDER-LEFT: #ccc 1px solid">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> <div> <div></div> <div class="h5"><br>J. Mi wrote:<br>> All,<br>><br>> I get following exception pretty consistently when trying to 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>> org.jboss.netty.channel.socket.nio.NioClientSocketPipelineSink$Boss.connect(NioClientSocketPipelineSink.java:381)<br> > at<br>> org.jboss.netty.channel.socket.nio.NioClientSocketPipelineSink$Boss.processSelectedKeys(NioClientSocketPipelineSink.java:351)<br>> at<br>> org.jboss.netty.channel.socket.nio.NioClientSocketPipelineSink$Boss.run(NioClientSocketPipelineSink.java:273)<br> > at<br>> org.jboss.netty.util.ThreadRenamingRunnable.run(ThreadRenamingRunnable.java:113)<br>> at<br>> org.jboss.netty.util.internal.IoWorkerRunnable.run(IoWorkerRunnable.java:53)<br>> at 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></div></div>> ------------------------------------------------------------------------<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> </blockquote></div><br> _______________________________________________<br>netty-dev mailing list<br><a href="mailto:netty-dev@lists.jboss.org">netty-dev@lists.jboss.org</a><br>https://lists.jboss.org/mailman/listinfo/netty-dev<br></blockquote></div><br><div apple-content-edited="true"> <span class="Apple-style-span" style="border-collapse: separate; color: rgb(0, 0, 0); font-family: Helvetica; font-size: medium; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: 2; text-align: auto; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px; -webkit-border-horizontal-spacing: 0px; -webkit-border-vertical-spacing: 0px; -webkit-text-decorations-in-effect: none; -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px; "><div style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; "><span class="Apple-style-span" style="border-collapse: separate; color: rgb(0, 0, 0); font-family: Helvetica; font-size: medium; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: 2; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px; -webkit-border-horizontal-spacing: 0px; -webkit-border-vertical-spacing: 0px; -webkit-text-decorations-in-effect: none; -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px; "><div style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; "><span class="Apple-style-span" style="border-collapse: separate; color: rgb(0, 0, 0); font-family: Helvetica; font-size: 12px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: 2; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px; -webkit-border-horizontal-spacing: 0px; -webkit-border-vertical-spacing: 0px; -webkit-text-decorations-in-effect: none; -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px; "><div style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; "><span class="Apple-style-span" style="border-collapse: separate; color: rgb(0, 0, 0); font-family: Helvetica; font-size: 12px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: 2; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px; -webkit-border-horizontal-spacing: 0px; -webkit-border-vertical-spacing: 0px; -webkit-text-decorations-in-effect: none; -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px; "><div style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; "><span class="Apple-style-span" style="border-collapse: separate; color: rgb(0, 0, 0); font-family: Helvetica; font-size: 12px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: 2; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px; -webkit-border-horizontal-spacing: 0px; -webkit-border-vertical-spacing: 0px; -webkit-text-decorations-in-effect: none; -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px; "><div style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; "><div><div>Mike McGrady</div><div>Principal Investigator AF081-028 AFRL SBIR</div><div>Senior Engineer</div><div>Topia Technology, Inc</div><div>1.253.720.3365</div><div><a href="mailto:mmcgrady@topiatechnology.com">mmcgrady@topiatechnology.com</a></div></div><div><br></div></div></span><br class="Apple-interchange-newline"></div></span><br class="Apple-interchange-newline"></div></span><br class="Apple-interchange-newline"></div></span><br class="Apple-interchange-newline"></div></span><br class="Apple-interchange-newline"> </div><br></div></body></html>