2 Replies Latest reply on Mar 17, 2003 6:01 PM by genman

    rolling logged PM  errors?

    doc_brown

      I've set up the PM for rolling logged with the following config:


      db/jbossmq/static_file
      <depends optional-attribute-name="MessageCache">jboss.mq:service=MessageCache


      After 3 submittions to one of my queues (testQueue), there is an additional Queue DAT file for all configured Queues:

      770:noc1:[/data/svr/jboss-3.0.6/server/default/db/jbossmq/static_file]# ls
      QUEUE.A.dat2 QUEUE.DLQ.dat3 QUEUE.PinQueue.dat2 QUEUE.testQueue.dat3
      QUEUE.A.dat3 QUEUE.ex.dat2 QUEUE.PinQueue.dat3 transactions.dat2
      QUEUE.DLQ.dat2 QUEUE.ex.dat3 QUEUE.testQueue.dat2 transactions.dat3

      As more and more submittions are done into just one Queue, all the Queue files grow. At this rate I'm going to run out of inodes very soon. (BTW: this is on solaris 8 with jboss 3.0.6)

      Is there any way to have a Message Queue store the message s in only 1 file as apposed to the multi-file based approare of the File PM and (as it seems) the Rolling Logged PM.

      Jim

        • 1. Re: rolling logged PM  errors?
          doc_brown

          *Bump*

          Does anybody have any information about this? Hello? Bueller? Bueller?

          • 2. Re: rolling logged PM  errors?
            genman


            It's not documented, but the default roll-over size is 0 messages. Which is really too small, and won't perform any better than the standard file PM. There is an MBean property you can set (In 3.2Beta), or maybe in the latest 3.0 branch, which you can use to set the size to something like 300-400 messages. The property is named something like "RollOverSize", which can be set in the jbossmq-service.xml file. I suggest downloading the source and taking a look yourself.