activemq-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Pete Redhead <>
Subject Confused by ActiveMQ 'Discarding message' on Topics
Date Mon, 07 Nov 2011 17:22:32 GMT

I have an issue where ActiveMQ stop routing messages to clients after about
12 hours of running, which I would really appreciate some help with.

When the problem occurs, clients can connect to the server fine. When they
subscribe to a topic, they get the a old message if using retroactive, but
no new messages come though.

I have noticed that when this happens, we get a few thousand 'Discarding
message' entries in the debug log, such as the following:

2011-11-07 16:53:21,981 | DEBUG | Discarding message ActiveMQTextMessage {
commandId = 3746315, responseRequired = false, 
messageId = ID:mario-33102-1320656586932-2:55752:-1:1:3746313,
originalDestination = null, 
originalTransactionId = null, producerId =
destination = topic://ip/43/image, transactionId = null, expiration = 0,
timestamp = 1320684793974,
arrival = 0, brokerInTime = 1320684793974, brokerOutTime = 0, correlationId
= null, replyTo = null, 
persistent = false, type = null, priority = 4, groupID = null, groupSequence
= 0,
 targetConsumerId = null, compressed = false, userID = null, content = null, 
marshalledProperties = null, dataStructure = null, redeliveryCounter = 0,
size = 1117, 
properties =
 readOnlyProperties = true, readOnlyBody = true, droppable = false, 
text = SHOW} 
| | ActiveMQ Transport:

I noticed this happening with a snapshot of 5.6 from July. I upgraded to a
snapshot from 27/10/2011 and this has the same issue.

The server is running Ubuntu 10.4 using Sun Java 1.6.0_26. There are about
200 non-durable topics, with around 1,000 clients connected at any time.
Messages are a few hundred characters, sent every 8-10 seconds on each

The configuration file is as follows:

<?xml version="1.0" encoding="UTF-8"?>
<beans xmlns=""
  <broker xmlns="" brokerName="mario"
dataDirectory="/usr/share/activemq/data" persistent="false" useJmx="false">
	  <policyEntry alwaysRetroactive="true" optimizedDispatch="true"
producerFlowControl="false" topic="&gt;">
	      <constantPendingMessageLimitStrategy limit="1"/>
      <transportConnector enableStatusMonitor="true" name="stomp-61613"

I understand that messages are dropped on queues with slow consumers and on
topics with no subscribers, but I don't believe that to be the case here.

If somebody could clarify why messages are being discarding and how to
change the config to resolve this issue, it would be very much appreciated.
Currently I am having to restart ActiveMQ every 10-12 hours.

Many thanks,

Pete Redhead

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

View raw message