activemq-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From davscl...@apache.org
Subject svn commit: r1379767 - /activemq/trunk/activemq-core/src/main/java/org/apache/activemq/broker/BrokerService.java
Date Sat, 01 Sep 2012 14:59:17 GMT
Author: davsclaus
Date: Sat Sep  1 14:59:17 2012
New Revision: 1379767

URL: http://svn.apache.org/viewvc?rev=1379767&view=rev
Log:
AMQ-4007: Fixed default values of system usage for GB values to use 1024 multiplier instead
of 1000.

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

Modified: activemq/trunk/activemq-core/src/main/java/org/apache/activemq/broker/BrokerService.java
URL: http://svn.apache.org/viewvc/activemq/trunk/activemq-core/src/main/java/org/apache/activemq/broker/BrokerService.java?rev=1379767&r1=1379766&r2=1379767&view=diff
==============================================================================
--- activemq/trunk/activemq-core/src/main/java/org/apache/activemq/broker/BrokerService.java
(original)
+++ activemq/trunk/activemq-core/src/main/java/org/apache/activemq/broker/BrokerService.java
Sat Sep  1 14:59:17 2012
@@ -1005,13 +1005,9 @@ public class BrokerService implements Se
             if (systemUsage == null) {
                 systemUsage = new SystemUsage("Main", getPersistenceAdapter(), getTempDataStore());
                 systemUsage.setExecutor(getExecutor());
-                systemUsage.getMemoryUsage().setLimit(1024 * 1024 * 64); // Default
-                                                                         // 64
-                                                                         // Meg
-                systemUsage.getTempUsage().setLimit(1024L * 1024 * 1000 * 50); // 50
-                                                                                // Gb
-                systemUsage.getStoreUsage().setLimit(1024L * 1024 * 1000 * 100); // 100
-                                                                                 // GB
+                systemUsage.getMemoryUsage().setLimit(1024 * 1024 * 64); // 64 MB
+                systemUsage.getTempUsage().setLimit(1024L * 1024 * 1024 * 50); // 50 GB
+                systemUsage.getStoreUsage().setLimit(1024L * 1024 * 1024 * 100); // 100 GB
                 addService(this.systemUsage);
             }
             return systemUsage;



Mime
View raw message