-
Bug
-
Resolution: Done
-
Minor
-
None
-
None
-
None
Using the stomp client stomp.py-4.0.13, when sending 100000 messages to the consumer with client-individual ackMode, the consumer hangs at 52000 messages.
All messages are enqueud to the topic. And consumer sends ack messages:
12:25:45,579 | TRACE | .0.1:48954@61613 | StompIO | 132 - org.apache.activemq.activemq-osgi - 5.9.0.redhat-611421 | Received: ACK id:ID:dhcp-4-224.brq.redhat.com-51141-1422530721561-3:1
Screenshot from hawtio:
When setting prefetch to lower number (100 and 1), the consumer doesn't hang, but stops after consuming 75756 and 48129 messages respectfully.
The details are below:
The consumer is written in a way, that it should stop after consuming the message 'SHUTDOWN'.
The message 'SHUTDOWN' is sent by publisher after sending all 100000 messages.
When printing message numbers, looks that some messages starting from 292 are missing.
Screenshot from hawtio:
An old discussion about stomp and ACK:
http://activemq.2283324.n4.nabble.com/Stomp-acking-and-prefetchSize-td2379487.html
where they also recommend to set prefetch size to 1.