Skip to content

Commit 09e418e

Browse files
Andrei Shikovfacebook-github-bot
Andrei Shikov
authored andcommitted
Increase max heap size for template gradle build
Summary: Updates maximum heap size for the gradle build to account for building RN from source when new architecture is enabled. Changelog: [Changed][Android] - Use 2g as a default heap size for gradle builds Reviewed By: cortinico Differential Revision: D33947090 fbshipit-source-id: 2f551e688f2d92c3092e053086f6933779cd6f63
1 parent 48318b1 commit 09e418e

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

gradle.properties

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
# This is causing issue with dependencies task: https://github.com/gradle/gradle/issues/9645#issuecomment-530746758
22
# org.gradle.configureondemand=true
33
org.gradle.daemon=true
4-
org.gradle.jvmargs=-Xmx4g -XX:MaxPermSize=2048m -XX:+HeapDumpOnOutOfMemoryError -Dfile.encoding=UTF-8
4+
org.gradle.jvmargs=-Xmx4g -XX:MaxMetaspaceSize=1g -Dfile.encoding=UTF-8
55
org.gradle.parallel=true
66

77
android.useAndroidX=true

template/android/gradle.properties

+2-2
Original file line numberDiff line numberDiff line change
@@ -9,8 +9,8 @@
99

1010
# Specifies the JVM arguments used for the daemon process.
1111
# The setting is particularly useful for tweaking memory settings.
12-
# Default value: -Xmx1024m -XX:MaxPermSize=256m
13-
# org.gradle.jvmargs=-Xmx2048m -XX:MaxPermSize=512m -XX:+HeapDumpOnOutOfMemoryError -Dfile.encoding=UTF-8
12+
# Default value: -Xmx512m -XX:MaxMetaspaceSize=256m
13+
org.gradle.jvmargs=-Xmx2048m -XX:MaxMetaspaceSize=512m
1414

1515
# When configured, Gradle will run in incubating parallel mode.
1616
# This option should only be used with decoupled projects. More details, visit

0 commit comments

Comments
 (0)