From db3a021384518569f3ff1b708524f94b6c2f6a1e Mon Sep 17 00:00:00 2001 From: Bosanac Dejan Date: Tue, 22 Sep 2009 16:06:17 +0000 Subject: [PATCH] https://issues.apache.org/activemq/browse/AMQ-2401 - fixes problem with low memory limits git-svn-id: https://svn.apache.org/repos/asf/activemq/trunk@817713 13f79535-47bb-0310-9956-ffa450edef68 --- .../org/apache/activemq/broker/region/BaseDestination.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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(); }