diff options
author | Jon Marius Venstad <jonmv@users.noreply.github.com> | 2021-04-20 21:33:30 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-04-20 21:33:30 +0200 |
commit | 0e05bdd705bb6fca9c5c69bc1c975f7c88416a07 (patch) | |
tree | 57f583a366f16d090018cc7daf58af19289ec414 | |
parent | 9431fd262f4b9a7fdce67fecffa73755d99e0dc1 (diff) | |
parent | 3ddfeac032ca9bae0090ae2dfd373b0814e88055 (diff) |
Merge pull request #17509 from vespa-engine/jonmv/less-GC-spam
Turn off verbose GC logging for metricsproxy and clustercontroller
4 files changed, 3 insertions, 5 deletions
diff --git a/config-model/src/main/java/com/yahoo/vespa/model/admin/clustercontroller/ClusterControllerContainer.java b/config-model/src/main/java/com/yahoo/vespa/model/admin/clustercontroller/ClusterControllerContainer.java index 0f75dac1ff0..72fb1160f7f 100644 --- a/config-model/src/main/java/com/yahoo/vespa/model/admin/clustercontroller/ClusterControllerContainer.java +++ b/config-model/src/main/java/com/yahoo/vespa/model/admin/clustercontroller/ClusterControllerContainer.java @@ -40,7 +40,7 @@ public class ClusterControllerContainer extends Container implements private static final ComponentSpecification CLUSTERCONTROLLER_BUNDLE = new ComponentSpecification("clustercontroller-apps"); private static final ComponentSpecification ZOOKEEPER_SERVER_BUNDLE = new ComponentSpecification("zookeeper-server"); private static final ComponentSpecification REINDEXING_CONTROLLER_BUNDLE = new ComponentSpecification("clustercontroller-reindexer"); - // The below adjumenst to default netty settings reduces default chunkSize from 16M to 1M + // The below adjustments to default netty settings reduces default chunkSize from 16M to 1M private static final int DEFAULT_NETTY_PAGE_SIZE = 4096; // Reduced from nettys default of 8192 private static final int DEFAULT_NETTY_MAX_ORDER = 8; // Reduced from nettys default of 11 diff --git a/config-model/src/main/java/com/yahoo/vespa/model/admin/clustercontroller/ClusterControllerContainerCluster.java b/config-model/src/main/java/com/yahoo/vespa/model/admin/clustercontroller/ClusterControllerContainerCluster.java index c4bd7198e11..89993780869 100644 --- a/config-model/src/main/java/com/yahoo/vespa/model/admin/clustercontroller/ClusterControllerContainerCluster.java +++ b/config-model/src/main/java/com/yahoo/vespa/model/admin/clustercontroller/ClusterControllerContainerCluster.java @@ -41,7 +41,6 @@ public class ClusterControllerContainerCluster extends ContainerCluster<ClusterC super.getConfig(builder); builder.jvm - .verbosegc(true) .heapsize(featureFlags.clusterControllerMaxHeapSizeInMb()); } diff --git a/config-model/src/main/java/com/yahoo/vespa/model/admin/metricsproxy/MetricsProxyContainer.java b/config-model/src/main/java/com/yahoo/vespa/model/admin/metricsproxy/MetricsProxyContainer.java index 986fd0b77ba..234892c5cc3 100644 --- a/config-model/src/main/java/com/yahoo/vespa/model/admin/metricsproxy/MetricsProxyContainer.java +++ b/config-model/src/main/java/com/yahoo/vespa/model/admin/metricsproxy/MetricsProxyContainer.java @@ -159,7 +159,6 @@ public class MetricsProxyContainer extends Container implements if (clusterMembership.isPresent()) { int maxHeapSize = featureFlags.metricsProxyMaxHeapSizeInMb(clusterMembership.get().cluster().type()); builder.jvm - .verbosegc(true) .gcopts(jvmGCOptions) .heapsize(maxHeapSize); } diff --git a/config-model/src/test/java/com/yahoo/vespa/model/admin/ClusterControllerTestCase.java b/config-model/src/test/java/com/yahoo/vespa/model/admin/ClusterControllerTestCase.java index 6d3d5836ec7..989ae87913d 100644 --- a/config-model/src/test/java/com/yahoo/vespa/model/admin/ClusterControllerTestCase.java +++ b/config-model/src/test/java/com/yahoo/vespa/model/admin/ClusterControllerTestCase.java @@ -396,7 +396,7 @@ public class ClusterControllerTestCase extends DomBuilderTest { assertEquals(256, qrStartConfig.jvm().heapsize()); assertEquals(0, qrStartConfig.jvm().heapSizeAsPercentageOfPhysicalMemory()); assertEquals(2, qrStartConfig.jvm().availableProcessors()); - assertTrue(qrStartConfig.jvm().verbosegc()); + assertFalse(qrStartConfig.jvm().verbosegc()); assertEquals("-XX:+UseG1GC -XX:MaxTenuringThreshold=15", qrStartConfig.jvm().gcopts()); assertEquals(512, qrStartConfig.jvm().stacksize()); assertEquals(0, qrStartConfig.jvm().directMemorySizeCache()); @@ -441,7 +441,7 @@ public class ClusterControllerTestCase extends DomBuilderTest { assertEquals(32, qrStartConfig.jvm().minHeapsize()); // Overridden values from ClusterControllerContainerCluster assertEquals(256, qrStartConfig.jvm().heapsize()); - assertTrue(qrStartConfig.jvm().verbosegc()); + assertFalse(qrStartConfig.jvm().verbosegc()); } @Test |