Uploaded image for project: 'ActiveMQ Artemis'
  1. ActiveMQ Artemis
  2. ARTEMIS-2062

AMQP: Reduce lock contention and allocations on message processing

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Closed
    • Minor
    • Resolution: Fixed
    • 2.6.2
    • 2.6.3, 2.7.0
    • AMQP
    • None

    Description

      On each inbound message the current AMQP handler attempts to top off credit for the receiver which results in a new runnable being created to hand off to the PagingManager or PagingStore and that code will result in a lock / unlock on the connection lock regardless of credit needing to be offered.  The handler can tell if the credit is below the min credits threshold before ever needing to fire this action and can avoid that work for each message by only firing off the credit offering code when the credit is known to be low. 

      Attachments

        Issue Links

          Activity

            People

              tabish Timothy A. Bish
              tabish Timothy A. Bish
              Votes:
              0 Vote for this issue
              Watchers:
              5 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: