<div>Hi Nicolas,<div><br></div><div>Could you run your server in debug mode, reproduce the problem, and let me know if you observe any weird behavior? &nbsp;For example, you could determine if such many ConnectExceptions are expected or it's some sort of infinite loop.</div><div><br></div><div>Even better, you could share your debugger screencast so that I can see what's going on inside, like this one:</div></div>
                <div><br></div><div>&nbsp; &nbsp;&nbsp;http://screencast.com/t/cdIcloD0kfBt</div><div><br></div><div>--&nbsp;<br><a href="http://gleamynode.net/">Trustin Lee</a><br></div>
                  
                <p style="color: #A0A0A8;">On Saturday, August 13, 2011 at 9:21 AM, NicolasDesy wrote:</p><blockquote type="cite"><div>
                    <span><div><div>Hello all,<br><br>I have been using netty successfully for quite a while but I started to get<br>some issues lately...  <br><br>I use netty for an async TCP client to a 3rd party chat filtering service. <br>The filter is really advanced but not really fast if I sent to messages at<br>once.  <br><br>On my side, I handle the read timeouts with the ReadTimeoutHandler +<br>HashedWheelTimer.  This is working well so far.<br><br><br>A few months ago they upgraded the service and now use a limit of 80<br>concurrent connections and put all the incoming ones in a queue.<br><br>The problem is I am not the only client of this service, there is also 20<br>http servers in the cluster that shares the same service. So it happens from<br>time to time that I also have a lot of connection timeouts.<br><br>The problem is there is so many connections timeout, it starts consuming all<br>cpu until we reboot the game server.  There is 6k conccurrent logout/login<br>to process and that is killing us :-)<br><br><br>Here is the beginning of our last "minute of hell" :<br><br><br><br>INFO   | jvm 1    | 2011/08/12 13:58:53 | java.net.ConnectException:<br>connection timed out<br>INFO   | jvm 1    | 2011/08/12 13:58:53 |       at<br>org.jboss.netty.channel.socket.nio.NioClientSocketPipelineSink$Boss.processConnectTimeout(NioClientSocketPipelineSink.java:371)<br>INFO   | jvm 1    | 2011/08/12 13:58:53 |       at<br>org.jboss.netty.channel.socket.nio.NioClientSocketPipelineSink$Boss.run(NioClientSocketPipelineSink.java:283)<br>INFO   | jvm 1    | 2011/08/12 13:58:53 |       at<br>org.jboss.netty.util.ThreadRenamingRunnable.run(ThreadRenamingRunnable.java:108)<br>INFO   | jvm 1    | 2011/08/12 13:58:53 |       at<br>org.jboss.netty.util.internal.DeadLockProofWorker$1.run(DeadLockProofWorker.java:44)<br>INFO   | jvm 1    | 2011/08/12 13:58:53 |       at<br>java.util.concurrent.ThreadPoolExecutor$Worker.runTask(Unknown Source)<br>INFO   | jvm 1    | 2011/08/12 13:58:53 |       at<br>java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source)<br>INFO   | jvm 1    | 2011/08/12 13:58:53 |       at<br>java.lang.Thread.run(Unknown Source)<br>INFO   | jvm 1    | 2011/08/12 13:58:53 | java.net.ConnectException:<br>connection timed out<br>INFO   | jvm 1    | 2011/08/12 13:58:53 |       at<br>org.jboss.netty.channel.socket.nio.NioClientSocketPipelineSink$Boss.processConnectTimeout(NioClientSocketPipelineSink.java:371)<br>INFO   | jvm 1    | 2011/08/12 13:58:53 |       at<br>org.jboss.netty.channel.socket.nio.NioClientSocketPipelineSink$Boss.run(NioClientSocketPipelineSink.java:283)<br>INFO   | jvm 1    | 2011/08/12 13:58:53 |       at<br>java.util.concurrent.ThreadPoolExecutor$Worker.runTask(Unknown Source)<br>INFO   | jvm 1    | 2011/08/12 13:58:53 |       at<br>java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source)<br>INFO   | jvm 1    | 2011/08/12 13:58:53 |       at<br>java.lang.Thread.run(Unknown Source)<br><br><br><br>The seconds stacktrace is repeated continuously until server reboot.   You<br>also need to know that there was also a couple of read timeouts during the<br>same second of the first stack trace.<br><br>I'm not sure what's going on, I'm looking throught netty sources right but I<br>thought it would a good idea to ask your help.<br><br><br>Thanks in advance,<br><br>-Nicolas<br><br><br>--<br>View this message in context: <a href="http://netty-forums-and-mailing-lists.685743.n2.nabble.com/Connection-timeout-taking-all-cpu-tp6682186p6682186.html">http://netty-forums-and-mailing-lists.685743.n2.nabble.com/Connection-timeout-taking-all-cpu-tp6682186p6682186.html</a><br>Sent from the Netty User Group mailing list archive at <a href="http://Nabble.com">Nabble.com</a>.<br>_______________________________________________<br>netty-users mailing list<br><a href="mailto:netty-users@lists.jboss.org">netty-users@lists.jboss.org</a><br><a href="https://lists.jboss.org/mailman/listinfo/netty-users">https://lists.jboss.org/mailman/listinfo/netty-users</a><br></div></div></span>
                  
                  
                  
                  
                </div></blockquote><div>
                    <br>
                </div>