[jboss-user] [JBoss Messaging] - How to set the FullSize of the queue

peepod do-not-reply at jboss.com
Mon Aug 18 05:17:13 EDT 2008


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!

View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4171012#4171012

Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4171012



More information about the jboss-user mailing list