CLOSE WAITS ON NETTY SERVER

Norman Maurer norman at apache.org
Wed Jan 26 12:51:35 EST 2011


Hi there,

yes it is.. ExecutionHandler was designed for that. But sometimes its
easier to just increase the IO-Thread count.

Bye,
Norman


Am 26. Januar 2011 18:41 schrieb Willi Schönborn <schoenborn at cosmocode.de>:
> See inline comments below.
>
> On 1/26/2011 5:50 PM, 이희승 (Trustin Lee) wrote:
>> -----BEGIN PGP SIGNED MESSAGE-----
>> Hash: SHA256
>>
>> Thanks for sharing your story with us.  Very helpful.
>>
>> "Mark_K"<mark.k at ecobee.com>  wrote:
>>
>>> We had a similar issue. It was due to two things:
>>>
>>> 1) We had connection cleanup code in our implementation of the
>>> SimpleChannelUpstreamHandler. This code would end up running in the
>>> Netty
>>> thread and consume it for much too long due to DB updates, etc.  This
>>> caused
>>> Netty to run our of threads to process incoming requests. Solution was
>>> to
>>> offload the logic into one of our application threads instead and
>>> release
>>> the Netty thread ASAP. This goes for all handler methods, in fact.
> Just for clarity, is this the use case ExecutionHandler was designed for?
>>> 2) Java JDKs have major performance issues with NIO. We upgraded to JDK
>>> 1.6.0_20 and the CLOSE_WAITS were gone. Seems that there is some
>>> locking or
>>> contention for release of resources which gets locked up and the
>>> CLOSE_WAITS
>>> keep growing.
>>>
>>> Mark.
>>> --
>>> View this message in context:
>>> http://netty-forums-and-mailing-lists.685743.n2.nabble.com/CLOSE-WAITS-ON-NETTY-SERVER-tp5961429p5963302.html
>>> Sent from the Netty User Group mailing list archive at Nabble.com.
>>> _______________________________________________
>>> netty-users mailing list
>>> netty-users at lists.jboss.org
>>> https://lists.jboss.org/mailman/listinfo/netty-users
>> - --
>> Trustin Lee, http://gleamynode.net/
>> Sent from a mobile device. Please excuse my brevity.
>> -----BEGIN PGP SIGNATURE-----
>> Version: APG v1.0.8
>>
>> iIkEAREIADEFAk1AUOEqHFRydXN0aW4gSGV1aXNldW5nIExlZSA8dHJ1c3RpbkBn
>> bWFpbC5jb20+AAoJEJb7nbIZ8zONQpwA/1ZpQDgQ/C+aLNDRcqhqy4tvL6G6qfol
>> G9TGaOmP48uVAQCpLCmzXLduWHg+6DS/210NaDcM7DtWqeZ6VylnPfJjhw==
>> =jGwC
>> -----END PGP SIGNATURE-----
>>
>>
>> _______________________________________________
>> netty-users mailing list
>> netty-users at lists.jboss.org
>> https://lists.jboss.org/mailman/listinfo/netty-users
>
> _______________________________________________
> netty-users mailing list
> netty-users at lists.jboss.org
> https://lists.jboss.org/mailman/listinfo/netty-users



More information about the netty-users mailing list