Details
Description
A call to org.apache.activemq.broker.jmx.DestinationView.resetStatistics() is implemented as a call to org.apache.activemq.broker.region.DestinationStatistics.reset(). This call sets the DestinationStatistics.messages counter to 0 even if there are messages currently in the queue.
This is functionally the same issue that was resolved for the "producers" and "consumers" counters in AMQ-1946.
The fix should be as easy as setting the doReset to false for the messages counter.
messages.setDoReset(false);
Attachments
Issue Links
- is duplicated by
-
AMQ-3952 ActiveMQ 5.5.1 Java API Reset Statistic reset everything
- Resolved