[rabbitmq-discuss] Optimizing Tips for beginner rabbitMQ user
Jesper Louis Andersen
jesper.louis.andersen at gmail.com
Tue Mar 26 10:46:06 GMT 2013
My primary first thing would be to drop all your processing and just accept
the messages and throw them away. That would immediately tell you where the
performance problem is. Next, I would not rule out the possibility of
something being wrong at a lower level (e.g., network). 2-3 msg/s is a
fairly low rate, which suggest something is wrong somewhere, or you are
doing some serious heavy lifting for each message.
Increasing the possible parallelism though more channels is one important
trick. The other is to eliminate latency by setting up some prefetching via
QoS. But beware of giving it too much prefetching.
Finally, do not forget to measure. Measurement can often show why something
doesn't work as expected.
On Tue, Mar 26, 2013 at 12:47 AM, extofer <extofer at gmail.com> wrote:
> Here is my setup: I've implemented rabbitMQ on a centOS environment I
> have one tomcat application publishing messages at an average of 30 msg/s.
> The consumer apps are in 3 different servers running the same process, each
> consuming at an average of 2~3 msg/s. I've tried optimizing our process on
> the consumer applications as much as possible, now I want to look at the
> queue and try to get more than 2~3 msg/s.
> Here are some questions, and perhaps someone can assist me with
> I use the same user authentications on all 3 consumers.... will having
> different users help bump the message rate?
> I've tried using more channels, but all in all, it doesn't change a thing,
> it still gets 1 or 25 messages depending on channels, but the message rate
> is the same.
> What are some common optimization tips for faster performance?
> The consumer application is a Tomcat application and I'm using rabbit-amqp
> configured below.
> <bean id="rabbitConnectionFactory"
> p:username="USER" p:password="PSWD!" p:virtualHost="VHNAME"
> <constructor-arg value="DOMAIN" />
> <property name="channelCacheSize" value="1" />
> Gabriel Villa
> rabbitmq-discuss mailing list
> rabbitmq-discuss at lists.rabbitmq.com
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the rabbitmq-discuss