You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@solr.apache.org by kr...@apache.org on 2022/11/30 21:31:39 UTC

[solr] branch branch_9x updated: Lower gradle heap: 3GB is unnecessary (#11936) (#1202)

This is an automated email from the ASF dual-hosted git repository.

krisden pushed a commit to branch branch_9x
in repository https://gitbox.apache.org/repos/asf/solr.git


The following commit(s) were added to refs/heads/branch_9x by this push:
     new f99209da5d6 Lower gradle heap: 3GB is unnecessary (#11936) (#1202)
f99209da5d6 is described below

commit f99209da5d61956ae14649c97160808a4e5d90a5
Author: Kevin Risden <ri...@users.noreply.github.com>
AuthorDate: Wed Nov 30 16:30:52 2022 -0500

    Lower gradle heap: 3GB is unnecessary (#11936) (#1202)
    
    Co-authored-by: Robert Muir <rm...@apache.org>
---
 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 1f9530a6e2c..263183b57e7 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 \\