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
This commit is contained in:
Jason Tedor 2016-05-11 10:48:08 -04:00
parent d0edd13f7b
commit e4edee5d9a
1 changed files with 3 additions and 2 deletions

View File

@ -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,