From 6774b6eb1427bdfc83c61ee11085187fa6c20642 Mon Sep 17 00:00:00 2001 From: Mark Vieira Date: Fri, 29 Jan 2021 12:51:14 -0800 Subject: [PATCH] Remove unused default heap size from distribution expansion variables (#68186) The default heap size now resides in MachineDependentHeap and is applied per our auto heap settings logic there vs living in jvm.options. For this reason we no longer need to fill this in at build time, so we can ditch these template variables. --- distribution/build.gradle | 6 ------ 1 file changed, 6 deletions(-) diff --git a/distribution/build.gradle b/distribution/build.gradle index 4bab19ffd4ec..d3384069283f 100644 --- a/distribution/build.gradle +++ b/distribution/build.gradle @@ -530,8 +530,6 @@ configure(subprojects.findAll { ['archives', 'packages'].contains(it.name) }) { *
path.env
*
The env file sourced before bin/elasticsearch to set environment * variables. Think /etc/defaults/elasticsearch.
- *
heap.min and heap.max
- *
Default min and max heap
*
scripts.footer
*
Footer appended to control scripts embedded in the distribution that is * (almost) entirely there for cosmetic reasons.
@@ -543,7 +541,6 @@ configure(subprojects.findAll { ['archives', 'packages'].contains(it.name) }) { */ subprojects { ext.expansionsForDistribution = { distributionType, oss, jdk -> - final String defaultHeapSize = "1g" final String packagingPathData = "path.data: /var/lib/elasticsearch" final String pathLogs = "/var/log/elasticsearch" final String packagingPathLogs = "path.logs: ${pathLogs}" @@ -597,9 +594,6 @@ subprojects { 'def': 'logs/gc.log' ], - 'heap.min': defaultHeapSize, - 'heap.max': defaultHeapSize, - 'heap.dump.path': [ 'deb': "-XX:HeapDumpPath=/var/lib/elasticsearch", 'rpm': "-XX:HeapDumpPath=/var/lib/elasticsearch",