Hanging when calling NioServerSocketChannelFactory.releaseExternalResources()

Trustin Lee (이희승) trustin at gmail.com
Tue Nov 3 03:30:21 EST 2009


I don't have much clue because the stack trace has been truncated.  My
current wild guess is that some channels were not closed before your
test tears down.  I could investigate more if you provide the unit
test which I can run by myself..

HTH

— Trustin Lee, http://gleamynode.net/



On Tue, Oct 27, 2009 at 4:23 AM, aspen264 <tomcondon at mac.com> wrote:
>
> I am sure that I am not in a netty thread when I do this.  I see this happen
> running JUnits tests.  After running the tests several times successfully,
> one test in particular will start to hang.  It seems that a netty server
> thread does not terminate.  Here is the top part of the stacktrace from a
> thread dump.  Any Ideas?:
>
> main at 1, prio=5, in group 'main', status: 'waiting'
>  java.lang.Thread.State: WAITING
>          at sun.misc.Unsafe.park(Unsafe.java:-1)
>          at java.util.concurrent.locks.LockSupport.parkNanos(LockSupport.java:198)
>          at
> java.util.concurrent.locks.AbstractQueuedSynchronizer$ConditionObject.awaitNanos(AbstractQueuedSynchronizer.java:1963)
>          at
> java.util.concurrent.ThreadPoolExecutor.awaitTermination(ThreadPoolExecutor.java:1245)
>
>          at
> org.jboss.netty.util.internal.ExecutorUtil.terminate(ExecutorUtil.java:87)
>          at
> org.jboss.netty.channel.socket.nio.NioServerSocketChannelFactory.releaseExternalResources(NioServerSocketChannelFactory.java:146)
>          at
> com.company.util.net.transport.ServerNetworkControllerImpl.performPostShutdownCleanup(ServerNetworkControllerImpl.java:81)
>          at
> com.company.util.net.transport.BaseNetworkController.shutdown(BaseNetworkController.java:69)
> --
> View this message in context: http://n2.nabble.com/Hanging-when-calling-NioServerSocketChannelFactory-releaseExternalResources-tp3894369p3894369.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
>



More information about the netty-users mailing list