You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@activemq.apache.org by Kevin Burton <bu...@spinn3r.com> on 2015/02/18 06:12:40 UTC
DeliveryMode.NON_PERSISTENT is 5x faster even though broker persistent=false
I’ve had to revert to running with a non-persistent broker for a while
until I can figure out my performance issues.
In the activemq.xml file I’m running with:
persistent="false"
in the <broker>
I’ve confirmed that it’s not writing to disk…
However, I now have a benchmark that tests DeliveryMode.NON_PERSISTENT
vs DeliveryMode.PERSISTENT
and DeliveryMode.NON_PERSISTENT is 5x faster even though (at this point) it
should be redundant.
Here are the raw numbers:
duration: 6,334 ms (nrThreads=1 nrMessagesPerThread=50,000 persistent=true,
transacted=false)
duration: 913 ms (nrThreads=1 nrMessagesPerThread=50,000 persistent=false,
transacted=false)
Why would this be? My theory is that ActiveMQ does additional accounting
for persistent messages (vs non-persistent ones).
My plan is to convert everything to be explicitly NON_PERSISTENT because of
this.
--
Founder/CEO Spinn3r.com
Location: *San Francisco, CA*
blog: http://burtonator.wordpress.com
… or check out my Google+ profile
<https://plus.google.com/102718274791889610666/posts>
<http://spinn3r.com>
Re: DeliveryMode.NON_PERSISTENT is 5x faster even though broker persistent=false
Posted by Gary Tully <ga...@gmail.com>.
are you using asyncSend - that is applicable to non persistent and
transacted messages by default.
On 18 February 2015 at 05:12, Kevin Burton <bu...@spinn3r.com> wrote:
> I’ve had to revert to running with a non-persistent broker for a while
> until I can figure out my performance issues.
>
> In the activemq.xml file I’m running with:
>
> persistent="false"
>
> in the <broker>
>
> I’ve confirmed that it’s not writing to disk…
>
> However, I now have a benchmark that tests DeliveryMode.NON_PERSISTENT
> vs DeliveryMode.PERSISTENT
>
> and DeliveryMode.NON_PERSISTENT is 5x faster even though (at this point) it
> should be redundant.
>
> Here are the raw numbers:
>
> duration: 6,334 ms (nrThreads=1 nrMessagesPerThread=50,000 persistent=true,
> transacted=false)
> duration: 913 ms (nrThreads=1 nrMessagesPerThread=50,000 persistent=false,
> transacted=false)
>
> Why would this be? My theory is that ActiveMQ does additional accounting
> for persistent messages (vs non-persistent ones).
>
> My plan is to convert everything to be explicitly NON_PERSISTENT because of
> this.
>
> --
>
> Founder/CEO Spinn3r.com
> Location: *San Francisco, CA*
> blog: http://burtonator.wordpress.com
> … or check out my Google+ profile
> <https://plus.google.com/102718274791889610666/posts>
> <http://spinn3r.com>