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

Eliminate Soft Cache in paging, and add reading options

    XMLWordPrintableJSON

Details

    • New Feature
    • Status: Closed
    • Major
    • Resolution: Fixed
    • 2.22.0
    • 2.24.0
    • None
    • None

    Description

      Paging was written a few years ago, and it was using SoftCache from the JDK.

      SoftCache exists with the promise that it would eliminate entries when the memory is low.

      As a result, when actually SoftCache is removed, the JVM is already pegged and nothing really work when it gets to that point.

      So, historically we then added a max-size to the PageCache and treated it as a regular HashMap, and in case it ever released instance, we would read the page back.

      That introduced an issue that the messages would have to read back when the cursor moved. a partial reading was introduced but still generated a lot of pressure in IO depending on how things happened.

      So, to simplify things, we are now reading the current file and just distributing messages to queues. and messages will just be regular messages after read from paging. A lot of things simplified.

      Attachments

        Issue Links

          Activity

            People

              clebertsuconic Clebert Suconic
              clebertsuconic Clebert Suconic
              Votes:
              0 Vote for this issue
              Watchers:
              3 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 - 11h
                  11h