users@glassfish.java.net

Re: java.nio.channels.ClosedByInterruptException when sending me

From: <forums_at_java.net>
Date: Mon, 21 Nov 2011 08:48:59 -0600 (CST)

Setting request timeout to -1 means that Glassfish/Grizzly will *never*
interrupt the thread, which is processing request, no matter how much time it
takes. So potentially such a thread will never get returned to the Glassfish
thread pool.

Normally Glassfish/Grizzly has a thread-pool of limited size, which processes
incoming requests, so if your application blocks threads for a long time
(even if it's supposed to do so) - it may impact other applications. And
potentially it may lead to situtation when all the threads get blocked and
server stops responding.


--
[Message sent by forum member 'oleksiys']
View Post: http://forums.java.net/node/851634