1 Reply Latest reply on Nov 4, 2008 9:14 AM by clebert.suconic

    Why do we need a max size and a page size?

    timfox

       

       public static final Integer DEFAULT_MAX_SIZE_BYTES = -1;
      
       public static final Boolean DEFAULT_DROP_MESSAGES_WHEN_FULL = Boolean.FALSE;
      
       public static final Integer DEFAULT_PAGE_SIZE_BYTES = 10 * 1024 * 1024; // 10M Bytes
      


      I thought we would by default page messages when max size is reached, so why do we need page size AND max size?

        • 1. Re: Why do we need a max size and a page size?
          clebert.suconic

          MaxSize is the maximum number of bytes you could have for the queue in memory.

          PageSize, is the size of each file where you store the messages on Page.


          Like, we could start paging at 100M, and each page (or file) will have 10M.

          There is also the GlobalMaxSize that takes all the Queues in consideration. (we aways use the GlobalSize by default, and have the MaxSize on queues disabled).