Re: Slow and fast messages

2011-08-01 Thread MaryAuaun
@whaley, those are good things to consider. I'm beginning to suspect serialization. The messages are probably 2k Bytes max, but it does include a hash table (typically containing 2-3 items in the table!). The network is local, two machines on the same switch, or sometimes sender and receiver are

Re: Slow and fast messages

2011-08-01 Thread MaryAuaun
javax.jms.Connection connection = ... connection.createSession(false, parms); // the first parameter is "transacted?", I used false And I commented out calls to session.commit() (session is declared as "javax.jms.Session") -- View this message in context: http://activemq.2283324.n4.nabble.co

Re: Slow and fast messages

2011-07-14 Thread Jason Whaley
Two questions/suggestions regarding your AMQ setup: 1) What is the average size (or range of sizes) of the actual message being sent from your producer? If you are dealing with larger messages you may wish to consider sending Blob Messages instead of putting the entire payload inside of the me

Re: Slow and fast messages

2011-07-13 Thread Christian Schneider
I recently did perf measurements using activemq. You can find the results and configs here http://www.liquid-reality.de/pages/viewpage.action?pageId=5865562 For simple one way pure jms i got about 5500 messages/s Christian Von meinem iPhone gesendet Am 12.07.2011 um 00:55 schrieb MaryAuaun :

RE: Slow and fast messages

2011-07-13 Thread Ozan Seymen
07:09 To: users@activemq.apache.org Subject: Re: Slow and fast messages Hi, Chapter 13 "Tuning ActiveMQ for Performance" of the book "ActiveMQ in Action" details a variety of techniques for speeding things up. For your setup, you should try to answer the question "where

Re: Slow and fast messages

2011-07-12 Thread TomLiebl
Hi MaryAuaun - Regarding your comment that you "removed the transacted and commits", what exactly did you do? It may be helpful for others (like myself) to get some more detail there, in case we can make the same change and benefit from the performance improvement. -- View this message in context:

Re: Slow and fast messages

2011-07-12 Thread TomLiebl
Hi MaryAuaun - Regarding your comment that you "removed the transacted and commits", what exactly did you do? It may be helpful for others (like myself) to get some more detail there. -- View this message in context: http://activemq.2283324.n4.nabble.com/Slow-and-fast-messages-tp3660295p3662968.h

Re: Slow and fast messages

2011-07-11 Thread mickhayes
Hi, Chapter 13 "Tuning ActiveMQ for Performance" of the book "ActiveMQ in Action" details a variety of techniques for speeding things up. For your setup, you should try to answer the question "where is the time being spent?". For an idea of potential speed, the published results of various SPECjms

Re: Slow and fast messages

2011-07-11 Thread MaryAuaun
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 ma

Re: Slow and fast messages

2011-07-11 Thread MaryAuaun
I also tried switching to non-persistent, and added the following options: connectionFactory.setUseAsyncSend(true); // tbw to test speed connectionFactory.setAlwaysSyncSend(false); connectionFactory.setSendAcksAsync(true); connectionF