diff --git a/src/main/java/it/cavallium/rockserver/core/server/GrpcServer.java b/src/main/java/it/cavallium/rockserver/core/server/GrpcServer.java index 5007e3c..b1ca050 100644 --- a/src/main/java/it/cavallium/rockserver/core/server/GrpcServer.java +++ b/src/main/java/it/cavallium/rockserver/core/server/GrpcServer.java @@ -71,7 +71,7 @@ public class GrpcServer extends Server { EventLoopGroup elg; Class channelType; try { - elg = new EpollEventLoopGroup(1); + elg = new EpollEventLoopGroup(Math.min(8, Runtime.getRuntime().availableProcessors())); channelType = EpollServerDomainSocketChannel.class; } catch (UnsatisfiedLinkError ex) { elg = new NioEventLoopGroup();