activemq-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From rsouissi <rsouiss...@stc.com.sa>
Subject If persistance=true in activemq.xml file & multiple consumers are used on same queue -> dispatching hangs
Date Fri, 24 Aug 2007 14:49:57 GMT

Hi,

I had a lot of problems trying to figure out what my consumers on a single
queue were consuming in the begining than ended-up consuming nothing after
few messages are sent:

- I tried both 4.1.1 and latest 5.0 snapshot
- I created multiple queue consumers on single queue (2 to 10) in same JVM
- Each consumer had its own session, and used the same connection (openwire)
- publisher publishes document in AUTO_ACK and PERSISTENT 
- Transacted mode and CLIENT_ACK do not make a difference in this issue
- Issues happens with stomp and openwire alike
- I use Kaha Persistence
- The problem happens faster if queue prefetch limit is low (1 was my
setting because I needed true round-robin)
- Consumers execute a slow service (1-10 sec)
- Broker server log shows nothing strange, except this message: DEBUG
PrefetchSubscription           - Prefetch limit.
- I tried with and without jms.useAsyncSend & jms.alwaysSessionAsync. Same
behavior.

After a lot of digging, I found out the problem only happens when I use
persistance="true" in the broker XML configuration file. When I remove it,
no issue at all.

Is this normal ? I guess my messages are still persisted because I send them
with PERSISTENT delivery mode. Any idea what's wrong in my configuration ?

Thanks
R
-- 
View this message in context: http://www.nabble.com/If-persistance%3Dtrue-in-activemq.xml-file---multiple-consumers-are-used-on-same-queue--%3E-dispatching-hangs-tf4324030s2354.html#a12313905
Sent from the ActiveMQ - User mailing list archive at Nabble.com.


Mime
View raw message