3 Replies Latest reply on Jan 24, 2012 11:57 AM by Stefano Razzauti

    HornetQ 2.2.5 paging directory and large directory are not cleaned

    Stefano Razzauti Newbie

      Hi,

      we have an HornetQ 2.2.5-Final cluster with two nodes configured as live-backup in a production environment.

       

      We have configured the parameters for paging and large message as described in the following

      lines extracted from hornetq-configuration.xml file:

       

      ---------------------------------------------------------------------------------------------------------------------------

         <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>

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

               <page-size-bytes>104857600</page-size-bytes>

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

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

               <max-delivery-attempts>-1</max-delivery-attempts>

            </address-setting>

         </address-settings>

      ---------------------------------------------------------------------------------------------------------------------------

       

      All the element defined in the HornetQ are durable topics.

       

      Our environment is active from about a month and we have noted that the two directories "large-messages" and "paging"

      increase continuously the size and the number of files inside them. The strange thing is that the older files are dated as

      the first day we activated the environment, so it seems that HornetQ is not cleaning correctly the large or paged message

      once consumed.

       

      Is there a way to force the cleaning of these two directory?

      How can we prevent the increase of files and size?

       

      I hope you could help me since this could be a serious problem for us.

      Let me know if you need any other information.

       

      Thanks in advance.

       

      Stefano