Skip to content

Commit

Permalink
Increase JVM heap size to 8GB in gradle.properties to address OutOfMe…
Browse files Browse the repository at this point in the history
…moryError
  • Loading branch information
gfukushima committed May 14, 2024
1 parent ffd30fb commit 430bd60
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions gradle.properties
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
# Set heap size. Set exports/opens flags required by Google Java Format and ErrorProne plugins. (JEP-396)
org.gradle.jvmargs=-Xmx2g -XX:+HeapDumpOnOutOfMemoryError -Dfile.encoding=UTF-8 \
org.gradle.jvmargs=-Xmx8g -XX:+HeapDumpOnOutOfMemoryError -Dfile.encoding=UTF-8 \
--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.main=ALL-UNNAMED \
Expand All @@ -12,10 +12,10 @@ org.gradle.jvmargs=-Xmx2g -XX:+HeapDumpOnOutOfMemoryError -Dfile.encoding=UTF-8
--add-opens jdk.compiler/com.sun.tools.javac.comp=ALL-UNNAMED

# Parallel build
org.gradle.parallel=true
org.gradle.parallel=true

# Enable configure on demand.
org.gradle.configureondemand=true

systemProp.org.gradle.internal.http.connectionTimeout=300000
systemProp.org.gradle.internal.http.socketTimeout=300000
systemProp.org.gradle.internal.http.socketTimeout=300000

0 comments on commit 430bd60

Please sign in to comment.