<br><br><div class="gmail_quote">On Fri, Mar 5, 2010 at 7:18 PM, infectedrhytms <span dir="ltr">&lt;<a href="mailto:infectedrhythms@hotmail.com">infectedrhythms@hotmail.com</a>&gt;</span> wrote:<br><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
<br>
Thanks<br>
<br>
By sharing what do you mean make sure to share?<br>
<br>
<br>
So what are the event executors added during the bootstrap???<br>
<br>
ServerBootstrap bootstrap = new ServerBootstrap(<br>
        new NioServerSocketChannelFactory(<br>
                Executors.newCachedThreadPool(),<br>
                Executors.newCachedThreadPool()));<br>
<font color="#888888"><br>
--<br>
View this message in context: <a href="http://n2.nabble.com/Long-running-handlers-tp4677280p4680848.html" target="_blank">http://n2.nabble.com/Long-running-handlers-tp4677280p4680848.html</a><br>
</font><div><div></div><div class="h5">Sent from the Netty User Group mailing list archive at Nabble.com.<br>
_______________________________________________<br>
netty-users mailing list<br>
<a href="mailto:netty-users@lists.jboss.org">netty-users@lists.jboss.org</a><br>
<a href="https://lists.jboss.org/mailman/listinfo/netty-users" target="_blank">https://lists.jboss.org/mailman/listinfo/netty-users</a><br></div></div></blockquote><div><br><br> </div></div>By sharing I mean DO NOT DO THE FOLLOWING, it will create threads for each connection.<br>
<br>pipeline.addLast(&quot;Ordered&quot;, new 
ExecutionHandler(<b style="background-color: rgb(255, 153, 0);">new OrderedMemoryAwareThreadPoolExecutors(...)</b>)); <br><br>But create a single instance of OrderedMemoryAwareThreadPoolExecutors, and keep passing the same reference for all ExecutionHandler.<br>
<br>HTH,<br><br>Virat<br><br>