activemq-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From dej...@apache.org
Subject svn commit: r817713 - /activemq/trunk/activemq-core/src/main/java/org/apache/activemq/broker/region/BaseDestination.java
Date Tue, 22 Sep 2009 16:06:18 GMT
Author: dejanb
Date: Tue Sep 22 16:06:17 2009
New Revision: 817713

URL: http://svn.apache.org/viewvc?rev=817713&view=rev
Log:
https://issues.apache.org/activemq/browse/AMQ-2401 - fixes problem with low memory limits

Modified:
    activemq/trunk/activemq-core/src/main/java/org/apache/activemq/broker/region/BaseDestination.java

Modified: activemq/trunk/activemq-core/src/main/java/org/apache/activemq/broker/region/BaseDestination.java
URL: http://svn.apache.org/viewvc/activemq/trunk/activemq-core/src/main/java/org/apache/activemq/broker/region/BaseDestination.java?rev=817713&r1=817712&r2=817713&view=diff
==============================================================================
--- activemq/trunk/activemq-core/src/main/java/org/apache/activemq/broker/region/BaseDestination.java
(original)
+++ activemq/trunk/activemq-core/src/main/java/org/apache/activemq/broker/region/BaseDestination.java
Tue Sep 22 16:06:17 2009
@@ -89,8 +89,8 @@
         // 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();
     }



Mime
View raw message