activemq-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Aaron Mulder" <ammul...@alumni.princeton.edu>
Subject Re: systemUsage configuration
Date Mon, 14 Jul 2008 23:31:03 GMT
I am by no means an authority on this, but I'm not sure the store
usage or temp usage settings are actually used for anything.

I believe you want your memory usage setting to be high enough to hold
all the traffic you expect to be in memory at once.  I think this is
e.g. non-persistent messages that have not yet been delivered (regular
in-flight messages, queues that are backed up, topics with durable
subscribers who are away, etc.).  There are separate settings that can
be applied to the memory limit for each destination (or wildcard
groups of queues/topics, etc.).

If you set the destination limits high and the system limit low, you
can cause ActiveMQ to start using disk space (as "swap" I guess), but
I hear that's prone to deadlocks and etc. -- plus it doesn't seem
bound by the store/temp usage settings.

If you are up against memory limits (due to slow/disconnected
consumers or whatever), there are various additional considerations
and configuration options you may want to use.

Thanks,
      Aaron

On Mon, Jul 14, 2008 at 6:47 PM, aliu <aliu@endeca.com> wrote:
>
> Hi, I am a new user of the ActiveMQ and I was trying to figure out how to
> tweak different memory settings.
> I read on the forum that storeUsage controls the maximum size of the
> AMQMessageStore, and memoryUsage is the maximum amount of memory the broker
> will use.
>
> However, when I ran a test of sending 50,000 messages with 1k for each
> message, and I've used the following config:
>         <systemUsage>
>            <systemUsage>
>                <memoryUsage>
>                    <memoryUsage limit="30 mb"/>
>                </memoryUsage>
>                <storeUsage>
>                    <storeUsage limit="1 gb" name="foo"/>
>                </storeUsage>
>                <tempUsage>
>                    <tempUsage limit="1 mb"/>
>                </tempUsage>
>            </systemUsage>
>        </systemUsage>
>
> My producer would block after sending about 30mb worth of data, even though
> I have specified the storeUsage to be big enough to contain all my messages.
> I thought what it would be is to have 30mb worth of data in memory, then
> it'll spill over once it exceeds the limit.
>
> Can someone please tell me in detail how these settings work together? I am
> at a loss here.
>
> I am using 5.1, persistent messaging with transactions.
>
> Thanks in advance.
> Audrey
>
> --
> View this message in context: http://www.nabble.com/systemUsage-configuration-tp18454843p18454843.html
> Sent from the ActiveMQ - User mailing list archive at Nabble.com.
>
>
>

Mime
View raw message