Uploaded image for project: 'Camel'
  1. Camel
  2. CAMEL-14425

Mail Consumer Performance Optimization

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • None
    • 3.1.0
    • camel-mail
    • None
    • Moderate

    Description

      Hi,

      we use the camel mail component and noticed a performance issue if we poll a mailbox with a lot of messages (30.000+), though we set a small value for maxMessagesPerPoll and FetchSize. I found that all available messages are looped through multiple times.

      In a test I measured the number of messages processed in 5 seconds for different amount of available messages in the inbox before and after optimizing the code. MaxMessagePerPoll is set to 3.

      I attach a picture with the results of the measurement.

      https://github.com/mash-sap/camel/commit/1a92bf9da8f06541a926e5f9c78947c2e62ef7f2

       

      This problem affects not a specific version.

      Best regards,
      Manuel

      Attachments

        1. performance.PNG
          6 kB
          Manuel Shenavai

        Activity

          People

            Unassigned Unassigned
            mash-sap Manuel Shenavai
            Votes:
            0 Vote for this issue
            Watchers:
            1 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