activemq-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Tim Bain <tb...@alumni.duke.edu>
Subject Re: Performance. Single producer and consumer is slow - 2 producers and 2 consumers is fast.
Date Wed, 19 Jul 2017 04:47:36 GMT
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 <tbain@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.
>

Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message