activemq-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From zaoliu <>
Subject optimizedAcknowledge flag with performance issue
Date Fri, 22 Feb 2008 20:57:08 GMT

I set the optimizedAcknowledge flag in the consumer client to patch the
knowledge for boosting performance by following the link below:

By setting the optimized Acknowledge, the performance do greatly improved
from 14000 msgs/s to 20000 msgs/s. 

My testing enviroment has three machines: producer, consumer and broker are
all in different machine and I am using ActiveMQ 5.0. For get above best
result, I just use one producer and one consumer thread. Then I want to see
how the performance changed when I improve the number of consumer threads.
Since in my consumer code, the consumer does nothing except counting the
number of messages received when be notified, so adding number of consumers,
the performance may get down a little bit as my expectation. But the result
make me surprised, below is the result (all using one producer):
1 consumer:  ~20000/s
2 consumers:   ~18000/s
3 consumers:  ~1500/s
4 consuerms:  ~500/s

When I reset optimizedKnowledge flag, the result get back to normal:
1 consumer:  ~15000/s
2 consumers: ~14000/s
3 consumers:  ~12000/s
4 consumers   ~11000/s

How optimizedKnowlwege flag affect the performance for threads so much. Any


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

View raw message