Skip to content

Commit

Permalink
Change io threads.
Browse files Browse the repository at this point in the history
  • Loading branch information
noboomu committed Sep 20, 2017
1 parent 5fbe8fe commit 16123e0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/main/java/io/sinistral/proteus/ProteusApplication.java
Original file line number Diff line number Diff line change
Expand Up @@ -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"))
Expand Down

0 comments on commit 16123e0

Please sign in to comment.