Set default min heap equal to default max heap

This commit sets the default min heap equal to the default max
heap. This is to align the default out-of-box settings with the heap
size bootstrap check.
This commit is contained in:
Jason Tedor 2016-08-19 11:38:46 -04:00
parent b586465a4c
commit 743b2ed1b2
1 changed files with 4 additions and 2 deletions

View File

@ -479,6 +479,8 @@ task run(type: RunTask) {
* </dl> * </dl>
*/ */
Map<String, String> expansionsForDistribution(distributionType) { Map<String, String> expansionsForDistribution(distributionType) {
final String defaultHeapSize = "2g"
String footer = "# Built for ${project.name}-${project.version} " + String footer = "# Built for ${project.name}-${project.version} " +
"(${distributionType})" "(${distributionType})"
Map<String, Object> expansions = [ Map<String, Object> expansions = [
@ -498,8 +500,8 @@ Map<String, String> expansionsForDistribution(distributionType) {
'def': '', 'def': '',
], ],
'heap.min': "256m", 'heap.min': defaultHeapSize,
'heap.max': "2g", 'heap.max': defaultHeapSize,
'stopping.timeout': [ 'stopping.timeout': [
'rpm': 86400, 'rpm': 86400,