Performance :Server with 100000 Connected Clients/MySql Access

"이희승 (Trustin Lee)" trustin at gmail.com
Mon May 2 07:18:36 EDT 2011


This is incorrect.  You must use Executors.newCachedThreadPool() for 
the first two constructor parameters and specify your desired max I/O 
thread count.  I'd better do something about this so that user does not 
make a mistake like this..

On Tue 21 Dec 2010 04:03:55 PM KST, malolasi wrote:
> you're right! I need to specify number of thread available in fixedThreadPool
> via NioServerSocketChannelFactory constructor like this:
> 
> ServerBootstrap bootstrap = new ServerBootstrap(
> 				new NioServerSocketChannelFactory(Executors
> 						.newCachedThreadPool(), Executors.newFixedThreadPool(2),2));
> without the 3rd parameter (2), there's no way NioServerSocketChannelFactory
> know how many thread are there in the threadpool.
> 
> thx :)


More information about the netty-users mailing list