From 5bb70bf8cefd75df5571c9c82bd53e691278dcb1 Mon Sep 17 00:00:00 2001 From: Henning Baldersheim Date: Fri, 14 Jan 2022 15:24:51 +0000 Subject: [PATCH 1/2] Readuce minimum direct memory size from 75m to 16m --- .../main/resources/configdefinitions/search.config.qr-start.def | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/container-search/src/main/resources/configdefinitions/search.config.qr-start.def b/container-search/src/main/resources/configdefinitions/search.config.qr-start.def index e2856e137f09..c58f9944d613 100644 --- a/container-search/src/main/resources/configdefinitions/search.config.qr-start.def +++ b/container-search/src/main/resources/configdefinitions/search.config.qr-start.def @@ -24,7 +24,7 @@ jvm.stacksize int default=512 restart jvm.compressedClassSpaceSize int default=32 restart ## Base value of maximum direct memory size (in megabytes) -jvm.baseMaxDirectMemorySize int default=75 restart +jvm.baseMaxDirectMemorySize int default=16 restart ## Amount of direct memory used for caching. (in megabytes) jvm.directMemorySizeCache int default=0 restart From 7ef56356cae32429ea94e7242b14cb9f54c06834 Mon Sep 17 00:00:00 2001 From: Henning Baldersheim Date: Fri, 14 Jan 2022 18:15:07 +0100 Subject: [PATCH 2/2] Update expected result --- .../com/yahoo/vespa/model/admin/ClusterControllerTestCase.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 474013c17fc9..41c7f6d72e2f 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 @@ -397,7 +397,7 @@ public void testUnconfiguredNoTuning() throws Exception { assertEquals("-XX:+UseG1GC -XX:MaxTenuringThreshold=15", qrStartConfig.jvm().gcopts()); assertEquals(512, qrStartConfig.jvm().stacksize()); assertEquals(0, qrStartConfig.jvm().directMemorySizeCache()); - assertEquals(75, qrStartConfig.jvm().baseMaxDirectMemorySize()); + assertEquals(16, qrStartConfig.jvm().baseMaxDirectMemorySize()); assertReindexingConfigPresent(model); assertReindexingConfiguredOnAdminCluster(model);