diff --git a/src/main/java/io/sinistral/proteus/ProteusApplication.java b/src/main/java/io/sinistral/proteus/ProteusApplication.java index 90ee0b6..d60bb1b 100644 --- a/src/main/java/io/sinistral/proteus/ProteusApplication.java +++ b/src/main/java/io/sinistral/proteus/ProteusApplication.java @@ -245,7 +245,7 @@ public void buildServer() Undertow.Builder undertowBuilder = Undertow.builder().addHttpListener(config.getInt("application.ports.http"), config.getString("application.host")) .setBufferSize(16 * 1024) - .setIoThreads(config.getInt("undertow.ioThreads")) + .setIoThreads(Runtime.getRuntime().availableProcessors() * 2) .setServerOption(UndertowOptions.ENABLE_HTTP2, config.getBoolean("undertow.enableHttp2")) .setServerOption(UndertowOptions.ALWAYS_SET_DATE, true) .setSocketOption(org.xnio.Options.BACKLOG, config.getInt("undertow.socket.backlog"))