2 Replies Latest reply on Aug 18, 2008 6:26 AM by Robert Corbett

    How to set the FullSize of the queue

    Robert Corbett Newbie

      I am sending SOAP messages with attatchments to a series of message queues running on JBoss Messanging. I have run into problems with OutOfMemoryExceptions.

      I have changed the memory allocation from the default to 512 and 1024. However, the real problem is that JBoss Messaging is holding too many messages in the in-memory queue.

      I know I can go into the jmx-console and reduce the size of the FullSize parameter (but only when the queue is stopped). What I would really like to do, is specify this value when I define the queue. Can someone tell me if this is possible? I have looked at the documentation but can see no mention of how this can be done.

      I have defined my queues as follows:

      <mbean code="org.jboss.jms.server.destination.QueueService"
       name="jboss.messaging.destination:service=Queue,name=soap"
       xmbean-dd="xmdesc/Queue-xmbean.xml">
       <annotation>@org.jboss.system.deployers.managed.ManagementObjectClass(code=org.jboss.jms.server.destination.QueueServiceMO)</annotation>
       <depends optional-attribute-name="ServerPeer">jboss.messaging:service=ServerPeer</depends>
       <depends>jboss.messaging:service=PostOffice</depends>
       </mbean>


      Thanks in advance!

        • 1. Re: How to set the FullSize of the queue
          Tim Fox Master

          Search for fullSize in the documentation.

          • 2. Re: How to set the FullSize of the queue
            Robert Corbett Newbie

            Its actually quite simple, all I had to do was add some simple attributes as follows:

            <mbean code="org.jboss.jms.server.destination.QueueService"
             name="jboss.messaging.destination:service=Queue,name=site"
             xmbean-dd="xmdesc/Queue-xmbean.xml">
             <annotation>@org.jboss.system.deployers.managed.ManagementObjectClass
             (code=org.jboss.jms.server.destination.QueueServiceMO)
             </annotation>
             <depends optional-attribute-name="ServerPeer">jboss.messaging:service=ServerPeer</depends>
             <depends>jboss.messaging:service=PostOffice</depends>
             <attribute name="FullSize">2000</attribute>
             <attribute name="PageSize">2000</attribute>
             <attribute name="DownCacheSize">2000</attribute>
            </mbean>