I have increased the flush interval to as much as 10,000, but it didn't seem to help much. what I want to measure is the time for the application to hand off x messages to the library. If my application wants to push more than 5000 messages in one second, I need to make sure that qpid can take them and send them out quick enough without buffering a lot in memory.
-----Original Message----- From: Gordon Sim [mailto:[email protected]] Sent: 11 June 2009 18:48 To: [email protected] Subject: Re: do we know what's the highest update rate qpid can achieve? Shan Wang wrote: > The last slow performance is my fault, I was calling > FailoverManager::execute() for every pending message. > > Now I have improved my program so it can do as much as 5000 messages per > second, but it's still slower than I would have expected. So I wrote a > test program deriving from the replay_sender test example, to test the > performance of c++ client using FailoverManager, the code is pasted > below. Try a larger value for the flush interval to MessageReplayTracker (or even try eliminating the tracker entirely for a test). Flushing frequently will slow down the writing of messages to disk. > The result is not much different from my real application, the maximum > update rate is about 5000-6000 messages per second. Can anyone please > have a look at my test and point out if any reason could be the course > of slow performance. If JMS can do as much as 100K, I would expect the > c++ can achieve similar rate. What do you want to measure, the time it takes for the application thread to hand off x messages to the library? or the time it takes for those messages to actually be enqueued on the queue? You can also try using the perftest program in the src/tests directory. It will allow you to set the messages size and durability and will report both publish rate, subscribe rate and throughput. --------------------------------------------------------------------- Apache Qpid - AMQP Messaging Implementation Project: http://qpid.apache.org Use/Interact: mailto:[email protected] The information contained in this email is strictly confidential and for the use of the addressee only, unless otherwise indicated. If you are not the intended recipient, please do not read, copy, use or disclose to others this message or any attachment. Please also notify the sender by replying to this email or by telephone (+44 (0)20 7896 0011) and then delete the email and any copies of it. Opinions, conclusions (etc.) that do not relate to the official business of this company shall be understood as neither given nor endorsed by it. IG Index plc is a company registered in England and Wales under number 01190902. VAT registration number 761 2978 07. Registered Office: Friars House, 157-168 Blackfriars Road, London SE1 8EZ. Authorised and regulated by the Financial Services Authority. FSA Register number 114059. --------------------------------------------------------------------- Apache Qpid - AMQP Messaging Implementation Project: http://qpid.apache.org Use/Interact: mailto:[email protected]
