activemq-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Joe Fernandez <>
Subject Re: ActiveMQ, non-persistent messages, and message expiration behaving correctly???
Date Fri, 07 May 2010 00:29:53 GMT

I think this is the normal behaviour for 5.2.

For 5.3, the message broker automatically sweeps destinations of expired
messages every 30 seconds. You can change this default value via the
'expireMessagesPeriod' policyEntry attribute. 

ActiveMQ Ref Guide -

magellings wrote:
> Hello, 
> I'm using ActiveMQ 5.2 and NMS 1.1.
> I'm sending non-persistent messages to a broker with an expiration time of
> 1 hour.  After one hour the messages are not deleted from the queue (can
> see through jconsole and web console "number of pending messages").  After
> one hour, no more messages are allowed to be sent to the queue because the
> queue memory is exhausted.  After one hour, consuming from the queue or
> drilling down on the queue link in the web console triggers the deletion
> of the messages.
> Is this normal behavior?  I expected the broker to delete the messages as
> they expire so that messages could keep being sent to the queue.  Were
> there any issues related to this resolved with ActiveMQ 5.3?
> I appreciate any help.
> -Thanks

View this message in context:
Sent from the ActiveMQ - User mailing list archive at

View raw message