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

Allow setMaxSizeBytes(0) to indicate an address that will always page

VotersWatch issueWatchersLinkCloneUpdate Comment AuthorReplace String in CommentUpdate Comment VisibilityDelete Comments
    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Closed
    • Major
    • Resolution: Fixed
    • 2.19.0
    • 2.20.0
    • Broker, Configuration
    • None

    Description

      Currently for force paging on an address, for a DLQ for example, you would set max-size-bytes to some small number, e.g.:

         <address-full-policy>PAGE</address-full-policy>
         <max-size-bytes>1</max-size-bytes>

      However, the broker will complain with:

      2021-11-15 16:21:51,606 ERROR [org.apache.activemq.artemis.core.server] AMQ224000: Failure in initialisation: java.lang.IllegalStateException: java.lang.IllegalStateException: pageSize for address DLQ.mytest >= maxSize. Normally pageSize should be significantly smaller than maxSize, ms: 1 ps 1024

      You could go ahead and downsize the page-size-bytes as well, but you don't want to cripple de-page or page-in and use a reasonable value and some memory!

         <address-full-policy>PAGE</address-full-policy>
         <max-size-bytes>256</max-size-bytes>
         <page-size-bytes>128</page-size-bytes>

      It should be sufficient to just set:

         <address-full-policy>PAGE</address-full-policy>
         <max-size-bytes>0</max-size-bytes>

      Attachments

        Activity

          This comment will be Viewable by All Users Viewable by All Users
          Cancel

          People

            gtully Gary Tully
            gtully Gary Tully
            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 - 0.5h
                0.5h

                Slack

                  Issue deployment