activemq-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Gary Tully <>
Subject Re: Why the transaction down the performance so much???
Date Wed, 30 Nov 2011 17:12:48 GMT
For producers, only use transactions is you are sending more than one
message, so for batching. Jms already guarantees a disk sync when a
send returns.

For clients do what you wish.

Do try and cache connections/sessions/prodcuers
and if you have a single consumer cache that.

Remeber, transactions mean disk syncs, so you will always be limited
by the speed of a fsync to your disk.

2011/11/30 lzr <>:
> Dear all,
> By my test, the performance down greatly than the test case without the
> transaction.
> For same program:
> Without transaction in Session, 1000 tps;
> With transaction in Session, about 10~20 tps which is absolutel y my
> expectation!!!!
> I attached my source files and configuration files. It's much appreciated if
> any suggestion.
> Thanks a lot!


View raw message