You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@james.apache.org by bt...@apache.org on 2022/03/22 02:01:52 UTC
[james-project] 21/29: JAMES-3715 Cap boss threads to 2
This is an automated email from the ASF dual-hosted git repository.
btellier pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/james-project.git
commit 5e685fa95ff2a1d596cfaa32ba10b8c01d9d2dbf
Author: Benoit Tellier <bt...@linagora.com>
AuthorDate: Thu Mar 17 14:12:18 2022 +0700
JAMES-3715 Cap boss threads to 2
We are not seeing a strong connection churn thus accepting new connections is
done quickly enough
---
.../main/java/org/apache/james/protocols/netty/AbstractAsyncServer.java | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/protocols/netty/src/main/java/org/apache/james/protocols/netty/AbstractAsyncServer.java b/protocols/netty/src/main/java/org/apache/james/protocols/netty/AbstractAsyncServer.java
index a2f8e93..22e1471 100644
--- a/protocols/netty/src/main/java/org/apache/james/protocols/netty/AbstractAsyncServer.java
+++ b/protocols/netty/src/main/java/org/apache/james/protocols/netty/AbstractAsyncServer.java
@@ -93,7 +93,7 @@ public abstract class AbstractAsyncServer implements ProtocolServer {
ServerBootstrap bootstrap = new ServerBootstrap();
bootstrap.channel(NioServerSocketChannel.class);
- bossGroup = new NioEventLoopGroup(NamedThreadFactory.withName(jmxName + "-boss"));
+ bossGroup = new NioEventLoopGroup(2, NamedThreadFactory.withName(jmxName + "-boss"));
workerGroup = new NioEventLoopGroup(ioWorker, NamedThreadFactory.withName(jmxName + "-io"));
bootstrap.group(bossGroup, workerGroup);
---------------------------------------------------------------------
To unsubscribe, e-mail: notifications-unsubscribe@james.apache.org
For additional commands, e-mail: notifications-help@james.apache.org