Uploaded image for project: 'James Server'
  1. James Server
  2. JAMES-3505

RemoteDelivery mailet single threaded for mail delivery

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • master, 3.5.0
    • 3.6.0
    • Remote Delivery
    • None

    Description

      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.

      Attachments

        Issue Links

          Activity

            People

              Unassigned Unassigned
              Shoe Sjoerd de Feijter
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                Time Tracking

                  Estimated:
                  Original Estimate - Not Specified
                  Not Specified
                  Remaining:
                  Remaining Estimate - 0h
                  0h
                  Logged:
                  Time Spent - 40m
                  40m