1 Reply Latest reply on Aug 29, 2012 3:59 AM by qtm

    Paging problems

    qtm

      Hi,

       

      I can't get paging to work under Jboss 7.1.2.

      My configuration looks like:

       

      <subsystem xmlns="urn:jboss:domain:messaging:1.2">

                  <hornetq-server>

                       [..]

       

                      <persistence-enabled>true</persistence-enabled>

                      <journal-file-size>10485760</journal-file-size>

                      <journal-min-files>2</journal-min-files>

                      <shared-store>true</shared-store>

                      <journal-type>ASYNCIO</journal-type>

                      <paging-directory path="shared_hq/paging"/>

                      <bindings-directory path="shared_hq/bindings"/>

                      <journal-directory path="shared_hq/journal"/>

                      <large-messages-directory path="shared_hq/large-messages"/>

       

                      [...]

       

                    <address-settings>

                          <!--default for catch all-->

                          <address-setting match="#">

                              <dead-letter-address>jms.queue.DLQ</dead-letter-address>

                              <expiry-address>jms.queue.ExpiryQueue</expiry-address>

                              <redelivery-delay>0</redelivery-delay>

                              <redistribution-delay>1000</redistribution-delay>

                              <max-size-bytes>1048576000</max-size-bytes>

                              <page-size-bytes>10485760</page-size-bytes>

                              <address-full-policy>PAGE</address-full-policy>

                              <message-counter-history-day-limit>10</message-counter-history-day-limit>

                          </address-setting>

                      </address-settings>

       

       

      I sent 500k messages to a jms-queue, but when I browse it I can see all messages and the documentation says I should see only the current page. The paging folder is not even created. Also, if I  start JBoss with minimum memory I'm getting an out of memory exception which tells me the paging configuration is not active. What I am doing wrong?

       

      Regards

        • 1. Re: Paging problems
          qtm

          to answer my own question -   <max-size-bytes>1048576000</max-size-bytes> is the problem. It's the memory hornetq occupies before entering paging mode. since I set it to something huge, it never exhaust it and it never enters paging mode.