Uploaded image for project: 'AMQ Broker'
  1. AMQ Broker
  2. ENTMQBR-7173

paging issue with FQQN syntax

    XMLWordPrintable

Details

    • False
    • None
    • False
    • Hide

      use single queue per address and not use FQQN

      Show
      use single queue per address and not use FQQN
    • Hide

      create a new broker and add in broker.xml 

      ...
      
           <address-setting match="TEST">
              <max-size-bytes>100Mb</max-size-bytes>
              <address-full-policy>PAGE</address-full-policy>
           </address-setting>
           </address-settings>
      
          <addresses>
          <address name="TEST">
                <anycast>
                  <queue name="TEST" />
                </anycast>
               </address>
      ...

       

      produce some messages :

       ./bin/artemis producer --destination TEST::TEST --message-count 10000 --text-size 9000 

      check in the logs broker should correctly start  paging:

      2023-01-27 15:11:42,144 WARN  [org.apache.activemq.artemis.core.server] AMQ222038: Starting paging on address 'TEST::TEST'; size=187119017 bytes (10001 messages); maxSize=104857600 bytes (-1 messages); globalSize=187839017 bytes (10001 messages); globalMaxSize=1073741824 bytes (-1 messages);
       

      but I can not see anything in paging:

      $ du -h data/
      4.0K    data/paging/347422ef-9e4d-11ed-a169-845cf3f10437
      4.0K    data/paging
      211M    data/journal
      2.0M    data/bindings
      0    data/large-messages
      213M    data/
       

       

       

       

      Show
      create a new broker and add in broker.xml  ...      <address-setting match= "TEST" >         <max-size-bytes>100Mb</max-size-bytes>         <address-full-policy>PAGE</address-full-policy>      </address-setting>      </address-settings>     <addresses>     <address name= "TEST" >           <anycast>             <queue name= "TEST" />           </anycast>          </address> ...   produce some messages :  ./bin/artemis producer --destination TEST::TEST --message-count 10000 --text-size 9000 check in the logs broker should correctly start  paging: 2023-01-27 15:11:42,144 WARN  [org.apache.activemq.artemis.core.server] AMQ222038: Starting paging on address 'TEST::TEST' ; size=187119017 bytes (10001 messages); maxSize=104857600 bytes (-1 messages); globalSize=187839017 bytes (10001 messages); globalMaxSize=1073741824 bytes (-1 messages); but I can not see anything in paging: $ du -h data/ 4.0K    data/paging/347422ef-9e4d-11ed-a169-845cf3f10437 4.0K    data/paging 211M    data/journal 2.0M    data/bindings 0    data/large-messages 213M    data/      

    Description

      When I produce messages by the CLI setting the destination to the queue

      ./bin/artemis producer --destination queue://pagingQueue - -message-count 1000 --text-size 9000

      I can see that the broker is starting paging, and I can see it reflected properly in the data folder.

      2022-09-27 09:32:08,633 WARN  [org.apache.activemq.artemis.core.server] AMQ222038: Starting paging on address 'pagingQueue'; size is currently: 114,458 bytes; max-size-bytes: 100,000; global-size-bytes: 114,458

      but when I produce messages with the CLI using the FQQN syntax.

      $ ./bin/artemis producer --destination pagingQueue::pagingQueue - -message-count 1000 --text-size 9000

      It seems that the broker starts paging, but the log trace is the below and the paging seems not happen (at least checking the size of the data/paging folder).

      2022-09-27 09:32:37,740 WARN  [org.apache.activemq.artemis.core.server] AMQ222038: Starting paging on address 'pagingQueue::pagingQueue'; size is currently: 114,606 bytes; max-size-bytes: 100,000; global-size-bytes: 114,926

      I can see the address it starts paging when the global size is increased after ingesting some more data with the below WARN.

      2022-09-27 09:35:16,340 WARN  [org.apache.activemq.artemis.core.server] AMQ222038: Starting paging on address 'pagingQueue'; size is currently: 100,032 bytes; max-size-bytes: 100,000; global-size-bytes: 29,954,895

      Checking on the 7.10 version I have the same behavior:

      2022-09-27 10:11:33,724 WARN  [org.apache.activemq.artemis.core.server] AMQ222038: Starting paging on address 'pagingQueue::pagingQueue'; size=114606 bytes (6 messages); maxSize=100000 bytes (-1 messages); globalSize=114966 bytes (6 messages); globalMaxSize=1073741824 bytes (-1 messages);
      2022-09-27 10:14:11,466 WARN  [org.apache.activemq.artemis.core.server] AMQ222038: Starting paging on address 'pagingQueue'; size=100008 bytes (0 messages); maxSize=100000 bytes (-1 messages); globalSize=26631297 bytes (1389 messages); globalMaxSize=1073741824 bytes (-1 messages);

      Attachments

        Issue Links

          Activity

            People

              rhn-support-jbertram Justin Bertram
              rhn-support-mgolfari Matteo Golfarini (Inactive)
              Samuel Gajdos Samuel Gajdos
              Votes:
              8 Vote for this issue
              Watchers:
              6 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: