Hi all,
I'm using AMQ 5.3 with a Producer that sends 10.000 very small msg 
(1kb for msg, no persistence) to a queue.
No consumers are listening to the queue.

In activemq.xml this is System Usage configuration:

<systemUsage>
   <systemUsage sendFailIfNoSpace="true">
      <memoryUsage>
         <memoryUsage limit="20 kb"/>
      </memoryUsage>
      <storeUsage>
          <storeUsage limit="1 gb" name="foo"/>
      </storeUsage>
      <tempUsage>
           <tempUsage limit="100 mb"/>
      </tempUsage>
   </systemUsage>
</systemUsage>

AMQ throws the following exception after having received 20 msg:

WARN | Async error occurred: javax.jms.ResourceAllocationException: Usage
Manager memory limit
reached. Stopping producer (ID:vlab_1_1_1-34012-1256728549176-0:0:1:1) to
prevent flooding
queue://NAM_QUEUE_01. See
http://activemq.apache.org/producer-flow-control.html for more info
javax.jms.ResourceAllocationException: 
Usage Manager memory limit reached. Stopping producer
(ID:vlab_1_1_1-34012-1256728549176-0:0:1:1)
to prevent flooding queue://NAM_QUEUE_01. 
See http://activemq.apache.org/producer-flow-control.html for more info

This is ok but I also expected the Producer to receive a JMSException.

It doesn't receive anything and goes on sending all 10.000 msg.
After having sent all msg, AMQ console displays only 20 pending msg.
A following consumer reads these 20 msg.

This is the normal behaviour or Producer's sends had to fail
(with an Exception) from 21th to 10000th attempt?

Many thanks in advance for any reply.
Moreno


-- 
View this message in context: 
http://www.nabble.com/sendFailIfNoSpace%3Dtrue%2C-no-JMSException-for-Producer-tp26094263p26094263.html
Sent from the ActiveMQ - User mailing list archive at Nabble.com.

Reply via email to