Hi netty,
I am using netty in the project,
we need create 100 collectors( serversocket peer).
execute the following code in windows OS when create collector,
serverBootstrap.group( new NioEventLoopGroup(), new NioEventLoopGroup() )
through cmd "netstat"
it will create 32 tcp connections.(caused in JAVA NIO,selector.open() will create a couple connecions)
so 100 collectors will create 3200 connections, it is too mcuh.
1, create 100 collectors is ok or not?
2,if it is ok, how can we reduce the tcp connections, can I write a NioEventLoopGroup factory, using singleton NioEventLoopGroup, instead of new NioEventLoopGroup().
for 100 collectors?
thank you very much.