2 threads seems to be enough to handle build messages from external make process

This commit is contained in:
Eugene Zhuravlev
2012-09-06 16:26:16 +02:00
parent cf7b3575d6
commit 9ae2e44465
@@ -799,7 +799,7 @@ public class BuildManager implements ApplicationComponent{
}
private int startListening() throws Exception {
final ChannelFactory channelFactory = new NioServerSocketChannelFactory(myPooledThreadExecutor, myPooledThreadExecutor, Math.min(4, Math.max(2, Runtime.getRuntime().availableProcessors())));
final ChannelFactory channelFactory = new NioServerSocketChannelFactory(myPooledThreadExecutor, myPooledThreadExecutor, 2);
final SimpleChannelUpstreamHandler channelRegistrar = new SimpleChannelUpstreamHandler() {
public void channelOpen(ChannelHandlerContext ctx, ChannelStateEvent e) throws Exception {
myAllOpenChannels.add(e.getChannel());