From e4edee5d9a7ae6e03e3062a3f141d22fc8ad0bd1 Mon Sep 17 00:00:00 2001 From: Jason Tedor Date: Wed, 11 May 2016 10:48:08 -0400 Subject: [PATCH] Equal default min and max heap settings Today we encourage users to set their minimum and maximum heap settings equal to each other to prevent the heap from resizing. Yet, the default heap settings do not start Elasticsearch in this fashion. This commit addresses this discrepancy by setting the default min heap to '512m' and the default max heap to the default min heap. Relates #16334 --- distribution/build.gradle | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/distribution/build.gradle b/distribution/build.gradle index 5cd1e761b83..adbce86ba24 100644 --- a/distribution/build.gradle +++ b/distribution/build.gradle @@ -438,6 +438,7 @@ task run(type: RunTask) {} * */ Map expansionsForDistribution(distributionType) { + String heapSize = '512m' String footer = "# Built for ${project.name}-${project.version} " + "(${distributionType})" Map expansions = [ @@ -457,8 +458,8 @@ Map expansionsForDistribution(distributionType) { 'def': '', ], - 'heap.min': '256m', - 'heap.max': '1g', + 'heap.min': "${heapSize}", + 'heap.max': "${heapSize}", 'stopping.timeout': [ 'rpm': 86400,