activemq-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Bruce Snyder <bruce.sny...@gmail.com>
Subject Re: ActiveMQ 5.3.0 cpu usage goes to zero
Date Mon, 29 Mar 2010 22:09:30 GMT
On Mon, Mar 29, 2010 at 10:01 PM, TMcCabe <team_mc@hotmail.com> wrote:
>
>
> Looks as though I might have solved the problem.
>
> I am using a CPP producer and using the Apache AMQ-APP library.
> In that producer for every message sent out, I was creating a destination
> (Queue) then creating a producer then closing the producer and destination.

Yeah, that's definitely an anti-pattern and would cause dramatic
memory fluctuations with the broker.

> Looks as though AMQ doesn't like that and I thought I designed that poorly.
> Once I created destinations and producers up front in the cpp code, then
> just used the producer to send out a byte message. Memory usage seems to get
> under control.

Great!

Bruce
-- 
perl -e 'print unpack("u30","D0G)U8V4\@4VYY9&5R\"F)R=6-E+G-N>61E<D\!G;6%I;\"YC;VT*"
);'

ActiveMQ in Action: http://bit.ly/2je6cQ
Blog: http://bruceblog.org/
Twitter: http://twitter.com/brucesnyder

Mime
View raw message