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 c5d9cbf22f946eb26815b89f6880384caba85b24
Author: Benoit TELLIER <btell...@linagora.com>
AuthorDate: Fri Nov 17 13:46:45 2023 +0100

    [BUILD] Disable JMX for MailDelivrerToHost object pool
    
    Flame graph shows non neglictible amount of resources is wasted
     doing this.
---
 .../james/transport/mailets/remote/delivery/MailDelivrerToHost.java      | 1 +
 1 file changed, 1 insertion(+)

diff --git 
a/server/mailet/mailets/src/main/java/org/apache/james/transport/mailets/remote/delivery/MailDelivrerToHost.java
 
b/server/mailet/mailets/src/main/java/org/apache/james/transport/mailets/remote/delivery/MailDelivrerToHost.java
index 5580f079cc..dc63a41a7a 100644
--- 
a/server/mailet/mailets/src/main/java/org/apache/james/transport/mailets/remote/delivery/MailDelivrerToHost.java
+++ 
b/server/mailet/mailets/src/main/java/org/apache/james/transport/mailets/remote/delivery/MailDelivrerToHost.java
@@ -84,6 +84,7 @@ public class MailDelivrerToHost {
     private ObjectPool<Session> createSessionPool(Properties 
defaultConfiguration) {
         GenericObjectPoolConfig<Session> poolConfig = new 
GenericObjectPoolConfig<>();
         poolConfig.setMaxTotal(-1); // unbounded pool, scales to match peak 
delivery thread concurrency
+        poolConfig.setJmxEnabled(false);
         return new GenericObjectPool<>(new BasePooledObjectFactory<>() {
             @Override
             public Session create() {


---------------------------------------------------------------------
To unsubscribe, e-mail: notifications-unsubscr...@james.apache.org
For additional commands, e-mail: notifications-h...@james.apache.org

Reply via email to