From 491c99a3de25cc639f2fa9abefc49f4c6070a48c Mon Sep 17 00:00:00 2001 From: Dawid Weiss Date: Tue, 18 Feb 2020 19:43:39 +0100 Subject: [PATCH] LUCENE-9232: tone down daemon defaults in generated local settings. --- gradle/generate-defaults.gradle | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/gradle/generate-defaults.gradle b/gradle/generate-defaults.gradle index 26a973c94c6..dea8b20f5a4 100644 --- a/gradle/generate-defaults.gradle +++ b/gradle/generate-defaults.gradle @@ -39,12 +39,15 @@ if (!hasDefaults) { "# These settings have been generated automatically on the first run.", "# See gradlew :helpLocalSettings for more information.", "systemProp.file.encoding=UTF-8", - "org.gradle.daemon=true", "org.gradle.jvmargs=-Xmx2g", "org.gradle.parallel=true", "org.gradle.priority=normal", "org.gradle.warning.mode=none", // Silence gradle warnings. We'll deal with them when we upgrade the wrapper. "", + "# You may disable the background daemon if it consumes too much memory.", + "org.gradle.daemon=true", + "org.gradle.daemon.idletimeout=900000", // timeout after 15 mins. + "", "# Maximum number of parallel gradle workers.", "org.gradle.workers.max=${maxWorkers}", "",