From 80d5d1a6512da4879c7e6c3eef179092da4cf60b Mon Sep 17 00:00:00 2001 From: Eric Anderson Date: Fri, 14 Feb 2025 10:29:12 -0800 Subject: [PATCH] kokoro: Increase gradle mem in android-interop To try to aid failure when building android-interop-testing ``` The Daemon will expire after the build after running out of JVM heap space. The project memory settings are likely not configured or are configured to an insufficient value. The daemon will restart for the next build, which may increase subsequent build times. These settings can be adjusted by setting 'org.gradle.jvmargs' in 'gradle.properties'. The currently configured max heap space is '512 MiB' and the configured max metaspace is '384 MiB'. ... Exception in thread "Daemon client event forwarder" java.lang.OutOfMemoryError: Java heap space ... > Task :grpc-android-interop-testing:mergeDexDebug FAILED ERROR:D8: java.lang.OutOfMemoryError: Java heap space com.android.builder.dexing.DexArchiveMergerException: Error while merging dex archives: ``` --- buildscripts/kokoro/android-interop.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/buildscripts/kokoro/android-interop.sh b/buildscripts/kokoro/android-interop.sh index 43bad26f1ec..d97b883d8ef 100755 --- a/buildscripts/kokoro/android-interop.sh +++ b/buildscripts/kokoro/android-interop.sh @@ -7,7 +7,7 @@ set -exu -o pipefail cd github/grpc-java -export GRADLE_OPTS=-Xmx512m +export GRADLE_OPTS=-Xmx1024m export LDFLAGS=-L/tmp/protobuf/lib export CXXFLAGS=-I/tmp/protobuf/include export LD_LIBRARY_PATH=/tmp/protobuf/lib