possible NIO selector leak in 7u25

Alan Bateman Alan.Bateman at oracle.com
Fri Jul 5 00:31:03 PDT 2013

On 04/07/2013 21:50, David M. Lloyd wrote:
> On 7/4/13 1:53 PM, Alan Bateman wrote:
>> On 04/07/2013 19:43, David M. Lloyd wrote:
>>> XNIO uses Selectors (usually PollSelectorImpls) which are cached per
>>> thread in order to mix blocking and non-blocking I/O.  If you are
>>> starting many short-lived threads and doing blocking operations on
>>> XNIO channels then this might explain what is happening.  The answer
>>> is basically "don't do that".
>> When you say "usually PollSelectorImpls" then it normally run with it
>> configured to use the poll based Selector?
> Yeah it will prefer PollSelectorImpl for temporary selectors, but will 
> ultimately fall back to whatever the default provider gives.
So I guess it must be make direct use of sun.nio.ch? Just curious as I 
can't see how this would work otherwise.


More information about the nio-dev mailing list