in src/main/java/org/apache/dubbo/proxy/server/NettyServer.java [82:96]
private void init() {
GenericInvoke.setRegistry(this.registry);
bootstrap = new ServerBootstrap();
bossGroup = new NioEventLoopGroup(Runtime.getRuntime().availableProcessors(), new NamingThreadFactory("" +
"Dubbo-Proxy-Boss"));
workerGroup = new NioEventLoopGroup(Runtime.getRuntime().availableProcessors() * 2,
new NamingThreadFactory("Dubbo-Proxy-Work"));
HttpProcessHandler processHandler = new HttpProcessHandler(businessThreadCount, serviceMapping, metadataCollector);
bootstrap.group(bossGroup, workerGroup)
.channel(NioServerSocketChannel.class)
.childHandler(new ProxyChannelInitializer(processHandler))
.childOption(ChannelOption.TCP_NODELAY, true)
.childOption(ChannelOption.SO_KEEPALIVE, true);
}