diff --git a/activemq-core/src/main/java/org/apache/activemq/broker/region/BaseDestination.java b/activemq-core/src/main/java/org/apache/activemq/broker/region/BaseDestination.java index 0ad0173841..85a873be49 100755 --- a/activemq-core/src/main/java/org/apache/activemq/broker/region/BaseDestination.java +++ b/activemq-core/src/main/java/org/apache/activemq/broker/region/BaseDestination.java @@ -89,8 +89,8 @@ public abstract class BaseDestination implements Destination { // let's copy the enabled property from the parent DestinationStatistics this.destinationStatistics.setEnabled(parentStats.isEnabled()); this.destinationStatistics.setParent(parentStats); - this.systemUsage = brokerService.getProducerSystemUsage(); - this.memoryUsage = new MemoryUsage(systemUsage.getMemoryUsage(), destination.toString()); + this.systemUsage = new SystemUsage(brokerService.getProducerSystemUsage(), destination.toString()); + this.memoryUsage = this.systemUsage.getMemoryUsage(); this.memoryUsage.setUsagePortion(1.0f); this.regionBroker = brokerService.getRegionBroker(); }