You are viewing a plain text version of this content. The canonical link for it is here.
Posted to server-dev@james.apache.org by "Sjoerd de Feijter (Jira)" <se...@james.apache.org> on 2021/02/25 03:06:00 UTC

[jira] [Created] (JAMES-3505) RemoteDelivery mailet single threaded for mail delivery

Sjoerd de Feijter created JAMES-3505:
----------------------------------------

             Summary: RemoteDelivery mailet single threaded for mail delivery
                 Key: JAMES-3505
                 URL: https://issues.apache.org/jira/browse/JAMES-3505
             Project: James Server
          Issue Type: Bug
          Components: Remote Delivery
    Affects Versions: master, 3.5.0
            Reporter: Sjoerd de Feijter


RemoteDelivery mailet appears to be delivering mail using a single thread. This affects throughput of email delivery significantly. 

I'm not very familiar with Apache James but it looks like the cause of this is the processMail method in DeliveryRunnable. The method is blocking and is preventing multi-threaded behavior. Wrapping the contents of the method in a Mono.create speeds up delivery significantly.

However, I'm not sure if this will cause threading issues (maybe it's supposed to be single threaded). So any input appreciated.



--
This message was sent by Atlassian Jira
(v8.3.4#803005)

---------------------------------------------------------------------
To unsubscribe, e-mail: server-dev-unsubscribe@james.apache.org
For additional commands, e-mail: server-dev-help@james.apache.org