Sorry, I missed the part where you said both the producers and the
consumers went faster. Are the consumers simply limited by the speed of the
producers (i.e. when the producer goes faster, so does the consumer)?

And do you see the same behavior with no consumers at all?

Tim

On Jul 18, 2017 10:44 PM, Tim Bain <tb...@alumni.duke.edu> wrote:

> 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