You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@lucene.apache.org by rm...@apache.org on 2022/11/18 15:56:32 UTC
[lucene] branch branch_9x updated: Lower gradle heap: 3GB is unnecessary (#11936)
This is an automated email from the ASF dual-hosted git repository.
rmuir pushed a commit to branch branch_9x
in repository https://gitbox.apache.org/repos/asf/lucene.git
The following commit(s) were added to refs/heads/branch_9x by this push:
new c10864210c5 Lower gradle heap: 3GB is unnecessary (#11936)
c10864210c5 is described below
commit c10864210c521f5ae257701b1d4d85daaa021c47
Author: Robert Muir <rm...@apache.org>
AuthorDate: Fri Nov 18 10:55:32 2022 -0500
Lower gradle heap: 3GB is unnecessary (#11936)
---
gradle/generation/local-settings.gradle | 3 +--
1 file changed, 1 insertion(+), 2 deletions(-)
diff --git a/gradle/generation/local-settings.gradle b/gradle/generation/local-settings.gradle
index c6a7dc2788f..c7314681c54 100644
--- a/gradle/generation/local-settings.gradle
+++ b/gradle/generation/local-settings.gradle
@@ -65,10 +65,9 @@ configure(rootProject) {
systemProp.file.encoding=UTF-8
# Set up gradle JVM defaults.
-# The heap seems huge but gradle runs out of memory on lower values (don't know why).
#
# We also open up internal compiler modules for spotless/ google java format.
-org.gradle.jvmargs=-Xmx3g -XX:TieredStopAtLevel=1 -XX:+UseParallelGC -XX:ActiveProcessorCount=1 \\
+org.gradle.jvmargs=-Xmx1g -XX:TieredStopAtLevel=1 -XX:+UseParallelGC -XX:ActiveProcessorCount=1 \\
--add-exports jdk.compiler/com.sun.tools.javac.api=ALL-UNNAMED \\
--add-exports jdk.compiler/com.sun.tools.javac.file=ALL-UNNAMED \\
--add-exports jdk.compiler/com.sun.tools.javac.parser=ALL-UNNAMED \\