activemq-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From James Black <>
Subject Re: Consumer performance problem with Tx
Date Mon, 08 Sep 2014 11:25:00 GMT
Hi Matt,

we don't use JmsTemplate in this particular bit of code.

I have done some testing this morning and the problem seems to be contention
with the shared connection.  The Spring DMLC is configured to cache at
Connection, Session and Consumer level.  If caching is enabled at all
(connection+) then it uses a shared single connection.  I can verify this by
monitoring ActiveMq through Jmx.

So if I have a DMLC with 20 consumer threads, all sharing the same
connection it is slow, but at low throughput you would not notice.

If I create 20 separate DMLCs all with a single thread and all with
different connections, then the performance is great in comparison!

Not sure why this would be as I believed that it is normal to share the
connection for JMS unlike JDBC and I would of assumed that ActiveMQ is
optimised for that case?



View this message in context:
Sent from the ActiveMQ - User mailing list archive at

View raw message