[Gradle] Decrease in tests Gradle daemons idle timeout
Our Gradle integration tests could launch multiple Gradle daemons with different versions and using different JDK versions. They are stick around until the whole test finishes using necessary memory. Especially this is a problem on our CI where OOM killer often tries to kill actually needed daemon. This commit decreases spawned Gradle Daemon idle timeout, so they shut down itself much earlier than default timeout of 3 hours.
This commit is contained in:
committed by
Space Team
parent
4110a9971a
commit
224a46e438
+3
@@ -426,6 +426,9 @@ private fun commonBuildSetup(
|
||||
// Required toolchains should be pre-installed via repo. Tests should not download any JDKs
|
||||
"-Porg.gradle.java.installations.auto-download=false",
|
||||
"-Porg.gradle.java.installations.paths=$jdkLocations",
|
||||
// Decreasing Gradle daemon idle timeout to 1 min from default 3 hours.
|
||||
// This should help with OOM on CI when agents do not have enough free memory available.
|
||||
"-Dorg.gradle.daemon.idletimeout=60000",
|
||||
if (enableBuildCacheDebug) "-Dorg.gradle.caching.debug=true" else null,
|
||||
if (enableBuildScan) "--scan" else null,
|
||||
kotlinDaemonDebugPort?.let {
|
||||
|
||||
Reference in New Issue
Block a user