Add netty epoll
This commit is contained in:
parent
b6d788d00a
commit
df98b40884
@ -74,7 +74,7 @@ public class GrpcServer extends Server {
|
|||||||
try {
|
try {
|
||||||
elg = new EpollEventLoopGroup(Runtime.getRuntime().availableProcessors() * 2);
|
elg = new EpollEventLoopGroup(Runtime.getRuntime().availableProcessors() * 2);
|
||||||
channelType = EpollServerDomainSocketChannel.class;
|
channelType = EpollServerDomainSocketChannel.class;
|
||||||
} catch (UnsatisfiedLinkError ex) {
|
} catch (Throwable ex) {
|
||||||
LOG.warn("Can't load Epoll event loop group, the server will be slower", ex);
|
LOG.warn("Can't load Epoll event loop group, the server will be slower", ex);
|
||||||
elg = new NioEventLoopGroup(Runtime.getRuntime().availableProcessors() * 2);
|
elg = new NioEventLoopGroup(Runtime.getRuntime().availableProcessors() * 2);
|
||||||
channelType = NioServerSocketChannel.class;
|
channelType = NioServerSocketChannel.class;
|
||||||
|
Loading…
Reference in New Issue
Block a user