Disable the JSON history reporter.
Project: http://git-wip-us.apache.org/repos/asf/incubator-blur/repo Commit: http://git-wip-us.apache.org/repos/asf/incubator-blur/commit/8868e247 Tree: http://git-wip-us.apache.org/repos/asf/incubator-blur/tree/8868e247 Diff: http://git-wip-us.apache.org/repos/asf/incubator-blur/diff/8868e247 Branch: refs/heads/0.1.5 Commit: 8868e247455e8133de335f020546d996b91b44aa Parents: ddc013f Author: Aaron McCurry <[email protected]> Authored: Tue Apr 30 20:56:14 2013 -0400 Committer: Aaron McCurry <[email protected]> Committed: Tue Apr 30 20:56:14 2013 -0400 ---------------------------------------------------------------------- .../apache/blur/thrift/ThriftBlurShardServer.java | 5 ++++- 1 files changed, 4 insertions(+), 1 deletions(-) ---------------------------------------------------------------------- http://git-wip-us.apache.org/repos/asf/incubator-blur/blob/8868e247/src/blur-core/src/main/java/org/apache/blur/thrift/ThriftBlurShardServer.java ---------------------------------------------------------------------- diff --git a/src/blur-core/src/main/java/org/apache/blur/thrift/ThriftBlurShardServer.java b/src/blur-core/src/main/java/org/apache/blur/thrift/ThriftBlurShardServer.java index 1948bbf..425e04a 100644 --- a/src/blur-core/src/main/java/org/apache/blur/thrift/ThriftBlurShardServer.java +++ b/src/blur-core/src/main/java/org/apache/blur/thrift/ThriftBlurShardServer.java @@ -78,6 +78,7 @@ import org.mortbay.jetty.webapp.WebAppContext; public class ThriftBlurShardServer extends ThriftServer { private static final Log LOG = LogFactory.getLog(ThriftBlurShardServer.class); + private static final boolean enableJsonReporter = false; public static void main(String[] args) throws Exception { int serverIndex = getServerIndex(args); @@ -205,7 +206,9 @@ public class ThriftBlurShardServer extends ThriftServer { context.addServlet(new ServletHolder(new TServlet(new Blur.Processor<Blur.Iface>(iface), new TJSONProtocol.Factory())), "/blur"); context.addServlet(new ServletHolder(new JSONReporterServlet()), "/livemetrics"); - JSONReporter.enable("json-reporter", 1, TimeUnit.SECONDS, 60); + if (enableJsonReporter) { + JSONReporter.enable("json-reporter", 1, TimeUnit.SECONDS, 60); + } } int threadCount = configuration.getInt(BLUR_SHARD_SERVER_THRIFT_THREAD_COUNT, 32);
