Browse Source

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
Jason Tedor 9 years ago
parent
commit
e4edee5d9a
1 changed files with 3 additions and 2 deletions
  1. 3 2
      distribution/build.gradle

+ 3 - 2
distribution/build.gradle

@@ -438,6 +438,7 @@ task run(type: RunTask) {}
  * </dl>
  */
 Map<String, String> expansionsForDistribution(distributionType) {
+  String heapSize = '512m'
   String footer = "# Built for ${project.name}-${project.version} " +
       "(${distributionType})"
   Map<String, Object> expansions = [
@@ -457,8 +458,8 @@ Map<String, String> expansionsForDistribution(distributionType) {
       'def': '',
     ],
 
-    'heap.min': '256m',
-    'heap.max': '1g',
+    'heap.min': "${heapSize}",
+    'heap.max': "${heapSize}",
 
     'stopping.timeout': [
       'rpm': 86400,