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

Remove linear iteration to get direct bindings

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Closed
    • Major
    • Resolution: Fixed
    • 2.35.0
    • 2.36.0
    • Broker
    • None

    Description

      Currently, with 500K+ queues, the cleanup step of TempQueueCleanerUpper requires invoking WildcardAddressManager#getDirectBindings, which is O(k) in the number of queues.

      From method profiling, this can consume up to 95% of our CPU time when needing to clean up many of these.

      It would be nice to make this more efficient, which shouldn't be difficult given the iteration just does a simple equality check.

      Attachments

        Issue Links

          Activity

            People

              Unassigned Unassigned
              Josh B Josh Byster
              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 - 4h 10m
                  4h 10m