activemq-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From MaryAuaun <MaryAub...@gmail.com>
Subject Re: Slow and fast messages
Date Mon, 11 Jul 2011 22:55:10 GMT
Boy, this forum is great for making me get my thoughts together and answering
my own questions, but if anyone knows any more, please chime in!

For writing 1000 messages

Originally 1000 messages took 40 seconds.

Persistent vs. Non-Persistent didn't make much difference in speed

These settings made a little differenceoptions:
                connectionFactory.setUseAsyncSend(true); // tbw to test
speed
                connectionFactory.setAlwaysSyncSend(false);
                connectionFactory.setSendAcksAsync(true);
                connectionFactory.setProducerWindowSize(100);
      (some of these settings are poorly document or not documented at all!)
  Now 1000 messages takes 27 seconds! 

I removed the "transacted" and commits, that made it much faster
   1000 messages take about 6 seconds, even with Persistent on.

That's nos 166 messages / sec, which is not bad.  If there are other
improvements I can make, please let me know!


--
View this message in context: http://activemq.2283324.n4.nabble.com/Slow-and-fast-messages-tp3660295p3661071.html
Sent from the ActiveMQ - User mailing list archive at Nabble.com.

Mime
View raw message