I've set up ActiveMQ on a host.
I run one producer and one consumer. The producer is simply pumping 10 000
messages into a queue using a pooled connection. The consumer simply fetches
messages.

This is slow. When I add another consumer process nothing changes. When I
add another producer process (now there are 2 producers and 2 consumers) the
producers suddenly start pumping messages significantly faster and the
consumers receive faster.

I can't work out why this is. What explains this behavior?

I'm using persistent messages. I see the same behavior with consumer
prefetch of 1 of 0.



--
View this message in context: 
http://activemq.2283324.n4.nabble.com/Performance-Single-producer-and-consumer-is-slow-2-producers-and-2-consumers-is-fast-tp4728648.html
Sent from the ActiveMQ - User mailing list archive at Nabble.com.

Reply via email to