activemq-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Paul Gale <>
Subject Configuring limits for advisory topics
Date Thu, 09 May 2013 14:17:16 GMT

I am trying to configure the use of my advisory topics. Ideally I want to
have them retain advisory messages by time, e.g., 3 days worth, where if
not consumed within that time frame they are purged. This is to prevent
build up of advisory messages. However, I cannot see a way to specify the
limit to be time based.

As an experiment I tried the following config (with the limit deliberately
set very low):

          <policyEntry topic="ActiveMQ.Advisory.>"
              <constantPendingMessageLimitStrategy limit="10"/>

It's not working. From looking at the web console it's clear that some
advisory topics go past the configured limit of 10 as the enqueued count
keeps climbing.

Is the memory limit taking precedence over the pending message limit
strategy or is the enqueued count misleading and not reliable?

If this is not the right way to approach this problem please advise on what
would be the optimal configuration.

FTW: the systemUsage is configured as follows:

          <memoryUsage limit="50m"/>
          <storeUsage limit="50m"/>
          <tempUsage limit="50m"/>


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