possible NIO selector leak in 7u25

Rob McKenna rob.mckenna at oracle.com
Tue Jul 9 10:03:10 PDT 2013

Glad to hear you got to the bottom of it.


On 08/07/13 23:22, Bernd Eckenfels wrote:
> Hello,
> we found a cause for the leak, we did not use the latest xnio-nio 
> release. Looking at the NioTcpChannel code I guess that for example 
> this commit could fix a potential problem (we shutdown r+w before we 
> close, which would not be passed on by the older xnio-nio):
> https://github.com/xnio/xnio/commit/71ebef70d11eedce9a0eb7e5de4d37ab22648b73 
> When we update the implementation to 3.0.8.GA we dont see the handles 
> accumulate anymore. So sorry for blaming NIO (I am still not sure why 
> this does not show up in the heapdumps. I have done some test programs 
> where I havent closed() the channels or havent selected on the 
> canceled keys. And in all those conditions I see Java heap objects 
> representing the (open) FDs. But I dont see them in our test 
> environment).
> Oh well... thanks for listening, it always helps to explain your 
> problems to others, especially if they are home made :)
> Bernd

More information about the nio-dev mailing list