{"issue":{"state":"closed","created_at":"2011-11-21T21:02:53Z","updated_at":"2011-11-22T07:37:40Z","comments":3,"user":{"gravatar_id":"41c5cae0cff586e7e4b158c657ce5a11","id":439399,"url":"https://api.github.com/users/jeffgriffith","login":"jeffgriffith","avatar_url":"https://secure.gravatar.com/avatar/41c5cae0cff586e7e4b158c657ce5a11?d=https://a248.e.akamai.net/assets.github.com%2Fimages%2Fgravatars%2Fgravatar-140.png"},"body":"During load test, our wacko testers decide to shutdown our loopback servers which receive very large numbers of  long lived tcp connections via a netty-based client (400-500k). On the success path we were doing 800tps without any problem really. So in the test with the remote server shut down, I hadn't really expected any sort of problem with 800tps of connection refused exceptions. I was surprised then to see that it started falling behind in handling the requests. After some debugging and adding monitoring for requests queue size, I discovered that it was the boss thread getting behind in the connection refused case because the exception is passed down through the handlers in the boss thread rather than being passed off to a worker. at 800tps this leaves 1.5ms for each transaction to be handled. Monitoring on the boss's request queue confirmed that it fell far behind (into the thousands). The code I submitted on this branch (tested on 3.2.6) seemed to alleviate the situation by letting me specify multiple boss threads. Thoughts?","assignee":null,"id":2309317,"labels":[],"pull_request":{"patch_url":"https://github.com/netty/netty/pull/70.patch","html_url":"https://github.com/netty/netty/pull/70","diff_url":"https://github.com/netty/netty/pull/70.diff"},"number":70,"title":"Modification to allow multiple boss threads in client","html_url":"https://github.com/netty/netty/issues/70","closed_at":"2011-11-22T05:28:25Z","url":"https://api.github.com/repos/netty/netty/issues/70","milestone":null},"action":"created","comment":{"created_at":"2011-11-22T07:37:40Z","updated_at":"2011-11-22T07:37:40Z","user":{"gravatar_id":"9bd0a2752ec49d888172ed1effd521d8","id":173918,"url":"https://api.github.com/users/trustin","login":"trustin","avatar_url":"https://secure.gravatar.com/avatar/9bd0a2752ec49d888172ed1effd521d8?d=https://a248.e.akamai.net/assets.github.com%2Fimages%2Fgravatars%2Fgravatar-140.png"},"body":"Did a little bit of cleanup - https://github.com/netty/netty/commit/1ac6c75d39114a89dcc13cd712eb907b9938c2d8\r\n\r\nI also backported this patch because it can fix client-side perf problem very easily when making a lot of connection attempt simultaneously.","id":2831396,"url":"https://api.github.com/repos/netty/netty/issues/comments/2831396"}}