diff --git a/gradle.properties b/gradle.properties index 24b3ba994..f7cd3016d 100644 --- a/gradle.properties +++ b/gradle.properties @@ -1,5 +1,6 @@ org.gradle.caching=true -org.gradle.jvmargs=-Xmx4g -Dfile.encoding=UTF-8 +# If jvmargs is changed then the default values must also be included, see https://github.com/gradle/gradle/issues/19750 +org.gradle.jvmargs=-XX:+UseParallelGC -Xmx4g -Dfile.encoding=UTF-8 -XX:MaxMetaspaceSize=2g -XX:+HeapDumpOnOutOfMemoryError -Xms256m # use parallel execution org.gradle.parallel=true # https://docs.gradle.org/7.6/userguide/configuration_cache.html