activemq-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Jason Rosenberg <>
Subject problem with messages 'pending' and redelivery, after broker restart
Date Fri, 08 Feb 2008 20:29:11 GMT

I'm having an issue with amq 5.1-SNAPSHOT, when stopping and restarting the

I'll process a batch of messages through my application.  I'll look on the
webconsole, and see that all queues have no messages pending.  I then
shutdown the broker.

Often, when I bring the broker back up, the webconsole shows that there are
several messages back in the pending state.  Sometimes, these get
immediately redelivered to the application, sometimes they don't.

Sometimes also, if I then submit more fresh messages, these get processed
fine, but the ones that were pending on restart remain there.  Finally,
sometimes, the number of pending messages gets updated to a negative number.

I'm using amqPersistence.  But I saw the same thing happening too with
journaled jdbc/derby persistence (I didn't test that scenario too thoroughly

Anyway, I'm wondering if there are any ideas about this, does anything
obvious jump to mind.  Are there any config params to try?

I tried setting the syncOnWrite flag to true, that didn't help....

I'm wondering about the cleanupInterval param, might that be something to
reduce (default is 3 mins)...

Anyway, trying to understand this is a bug (seems like it) or the desired
behavior with the default config....something to do with optimizing

The message redelivery is the main thing that I'm concerned about....

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

View raw message