Threads & New Connections

Norman Maurer norman.maurer at googlemail.com
Tue Oct 4 15:33:21 EDT 2011


Show us your handler code. My guess is that you block in the handler..

Bye,
Norman


2011/10/4 irwinbilling <irwin.billing at gmail.com>:
> Hello,
>
> I seem to be running into a very peculiar problem.  Using the default
> ChannelFactory (Executors.newCachedThreadPool()) with a custom
> ChannelPipeline, the server seems to stop serving new connections after 39
> successful connections and message exchanges.
>
> When looking at the list of running threads, it seems that for every new
> connection, a new thread is started.  When the channel disconnects, the
> thread stays alive (waiting at Unsafe.park).  This happens until the 40th
> connection when the CHannelFactory.getPipeline() does not get called.
>
> What could cause an issue of this sort?
>
> Thanks!
>
> --
> View this message in context: http://netty-forums-and-mailing-lists.685743.n2.nabble.com/Threads-New-Connections-tp6859861p6859861.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