You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@activemq.apache.org by dcheckoway <dc...@gmail.com> on 2010/10/05 21:40:58 UTC

Performance issue with Camel multicast in 5.4.1

In the process of upgrading from 5.3.2 to 5.4.1, I've encountered a new,
major performance issue.  I make use of Camel's multicast in order to
replicate messages from one queue out to four other queues...snippet from
conf/camel.xml:

        <route>
          <from uri="activemq:queue:dan.main?concurrentConsumers=5"/>
          <multicast stopOnException="true">
            <to uri="activemq:queue:dan.a"/>
            <to uri="activemq:queue:dan.b"/>
            <to uri="activemq:queue:dan.c"/>
            <to uri="activemq:queue:dan.d"/>
          </multicast>
        </route>

In 5.3.2, the multicast happened pretty much instantaneously, even with very
high producer rates.  As soon as a message was queued on "dan.main" it would
show up on the other 4 queues.  The "dan.main" queue size would hover near
zero.

In 5.4.1, the multicast is extremely slow!

My configuration is bone stock with the exception of producerFlowControl
being disabled on queues in activemq.xml:

                <policyEntry queue=">" producerFlowControl="false"
memoryLimit="1mb">

That is literally the ONLY change from the stock distribution config (other
than camel.xml being uncommented in activemq.xml in 5.3.2...whereas it's
sucked in automatically in 5.4.1).

Any ideas on what could be happening?  Is there some sort of tuning I need
to do in 5.4.1 in order to make the multicast perform as quickly as it did
in 5.3.2?
-- 
View this message in context: http://activemq.2283324.n4.nabble.com/Performance-issue-with-Camel-multicast-in-5-4-1-tp2956741p2956741.html
Sent from the ActiveMQ - User mailing list archive at Nabble.com.

Re: Performance issue with Camel multicast in 5.4.1

Posted by Stan Lewis <sl...@fusesource.com>.
Sounds like it could be a regression, I tried it here and it
definitely lags, tested it with the connection factory as-is, with a
pooled connection factory and finally with tcp instead of vm.  I don't
see many recent changes in the activemq-camel component though.

You could actually achieve the same effect without camel using a
virtual destination, might be a workaround at least:

      <destinationInterceptors>
        <virtualDestinationInterceptor>
          <virtualDestinations>
            <compositeQueue name="dan.main">
              <forwardTo>
                <queue physicalName="dan.a" />
                <queue physicalName="dan.b" />
                <queue physicalName="dan.c" />
                <queue physicalName="dan.d" />
              </forwardTo>
            </compositeQueue>
          </virtualDestinations>
        </virtualDestinationInterceptor>
      </destinationInterceptors>
      <destinationPolicy>
        <policyMap>
          <policyEntries>
            <policyEntry queue=">" producerFlowControl="false"
memoryLimit="1mb"/>
          </policyEntries>
        </policyMap>
      </destinationPolicy>
      <destinations>
        <queue physicalName="dan.a" />
        <queue physicalName="dan.b" />
        <queue physicalName="dan.c" />
        <queue physicalName="dan.d" />
      </destinations>

On Tue, Oct 5, 2010 at 3:42 PM, dcheckoway <dc...@gmail.com> wrote:
>
> BTW...I forgot to mention that in order to rule out Camel being responsible,
> I tried the same test in 5.4.1 with Camel 2.2.0 jars (5.4.1 comes with
> 2.4.0).  No difference.
> --
> View this message in context: http://activemq.2283324.n4.nabble.com/Performance-issue-with-Camel-multicast-in-5-4-1-tp2956741p2956742.html
> Sent from the ActiveMQ - User mailing list archive at Nabble.com.
>

Re: Performance issue with Camel multicast in 5.4.1

Posted by dcheckoway <dc...@gmail.com>.
BTW...I forgot to mention that in order to rule out Camel being responsible,
I tried the same test in 5.4.1 with Camel 2.2.0 jars (5.4.1 comes with
2.4.0).  No difference.
-- 
View this message in context: http://activemq.2283324.n4.nabble.com/Performance-issue-with-Camel-multicast-in-5-4-1-tp2956741p2956742.html
Sent from the ActiveMQ - User mailing list archive at Nabble.com.