Timer timer = new HashedWheelTimer();
bootstrap = new ServerBootstrap(new NioServerSocketChannelFactory(
Executors.newCachedThreadPool(),
Executors.newCachedThreadPool()));
bootstrap.setPipelineFactory(new PortNettyFactory(timer,port));
bootstrap.setOption("child.tcpNoDelay", true);
bootstrap.setOption("child.keepAlive", true);
bootstrap.bind(new InetSocketAddress(port));
我在Jprofiler中使用netty显示内存泄漏。请向我推荐,谢谢!