mirror of https://github.com/apache/activemq.git
AMQ-4007: Fixed default values of system usage for GB values to use 1024 multiplier instead of 1000.
git-svn-id: https://svn.apache.org/repos/asf/activemq/trunk@1379767 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
parent
4b44d3129c
commit
ca728c0958
|
@ -1005,13 +1005,9 @@ public class BrokerService implements Service {
|
||||||
if (systemUsage == null) {
|
if (systemUsage == null) {
|
||||||
systemUsage = new SystemUsage("Main", getPersistenceAdapter(), getTempDataStore());
|
systemUsage = new SystemUsage("Main", getPersistenceAdapter(), getTempDataStore());
|
||||||
systemUsage.setExecutor(getExecutor());
|
systemUsage.setExecutor(getExecutor());
|
||||||
systemUsage.getMemoryUsage().setLimit(1024 * 1024 * 64); // Default
|
systemUsage.getMemoryUsage().setLimit(1024 * 1024 * 64); // 64 MB
|
||||||
// 64
|
systemUsage.getTempUsage().setLimit(1024L * 1024 * 1024 * 50); // 50 GB
|
||||||
// Meg
|
systemUsage.getStoreUsage().setLimit(1024L * 1024 * 1024 * 100); // 100 GB
|
||||||
systemUsage.getTempUsage().setLimit(1024L * 1024 * 1000 * 50); // 50
|
|
||||||
// Gb
|
|
||||||
systemUsage.getStoreUsage().setLimit(1024L * 1024 * 1000 * 100); // 100
|
|
||||||
// GB
|
|
||||||
addService(this.systemUsage);
|
addService(this.systemUsage);
|
||||||
}
|
}
|
||||||
return systemUsage;
|
return systemUsage;
|
||||||
|
|
Loading…
Reference in New Issue