From f5b1b831b63ec722936fcab2bb04235b8154cf5a Mon Sep 17 00:00:00 2001 From: Robert Davies Date: Tue, 20 Feb 2007 15:40:08 +0000 Subject: [PATCH] set stats collection to false by default - a real performance hog - ironically git-svn-id: https://svn.apache.org/repos/asf/activemq/trunk@509612 13f79535-47bb-0310-9956-ffa450edef68 --- .../src/main/java/org/apache/activemq/broker/BrokerService.java | 2 +- .../main/java/org/apache/activemq/management/StatisticImpl.java | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/activemq-core/src/main/java/org/apache/activemq/broker/BrokerService.java b/activemq-core/src/main/java/org/apache/activemq/broker/BrokerService.java index f0365a09ff..e660754760 100644 --- a/activemq-core/src/main/java/org/apache/activemq/broker/BrokerService.java +++ b/activemq-core/src/main/java/org/apache/activemq/broker/BrokerService.java @@ -103,7 +103,7 @@ public class BrokerService implements Service, Serializable { public static final String LOCAL_HOST_NAME; private boolean useJmx = true; - private boolean enableStatistics = true; + private boolean enableStatistics = false; private boolean persistent = true; private boolean populateJMSXUserID = false; private boolean useShutdownHook = true; diff --git a/activemq-core/src/main/java/org/apache/activemq/management/StatisticImpl.java b/activemq-core/src/main/java/org/apache/activemq/management/StatisticImpl.java index a66f7ab5ea..c173eebdcd 100755 --- a/activemq-core/src/main/java/org/apache/activemq/management/StatisticImpl.java +++ b/activemq-core/src/main/java/org/apache/activemq/management/StatisticImpl.java @@ -29,7 +29,7 @@ public class StatisticImpl implements Statistic, Resettable { private String description; private long startTime; private long lastSampleTime; - protected boolean enabled= true; + protected boolean enabled= false; public StatisticImpl(String name, String unit, String description) { this.name = name;