TIBCO ems queue limit exceeded

I get an exception (shown below) when I try to send messages to the TIBCO Ems queue.

javax.jms.ResourceAllocationException: Queue limit exceeded at com.tibco.tibjms.Tibjmsx.buildException(Tibjmsx.java:523) at com.tibco.tibjms.TibjmsxSessionImp._publish(TibjmsxSessionImp.java:1390) at com.tibco.tibjms.TibjmsMessageProducer._publish(TibjmsMessageProducer.java:246) at com.tibco.tibjms.TibjmsQueueSender.send(TibjmsQueueSender.java:51) 

The only place I've seen this exception is the link: http://class10e.com/tibco/a-queue-is-defined-as/

And from here I was able to guess that you should have at least one consumer in the queue before sending any messages. As soon as I created the user, it worked, but only up to 5 or 6 posts. It is strange that I empty the queue before each test, and I send accurate text messages, so there is no difference in size. Why does this fail sometimes after 5 and sometimes after 6 messages? I do not consume the message after I initially messed up the queue (I created the user, but used the eclipse debugger to pause the message consumer stream). Does anyone know what is the reason for this exception?

+6
source share
3 answers

It looks like the destination has MAXBYTES OR MAXMSGS properties set. Exceeding the queue limit exceeded the error.

Please check your destination.

Hope this helps

+1
source

Use this command to increase the queue size form. EMS Administration Tool

setprop queue-name maxmsgs = 10000

setprop queue-name maxbytes = 1024MB

0
source

this error may be caused by the following

The default size for the EMS queue is 512 MB, if you cross that size, then execute the error

-1
source

Source: https://habr.com/ru/post/944145/


All Articles