xds: Allow Gradle to use more memory when building interop

Should fix "Expiring Daemon because JVM heap space is exhausted".

https://github.com/grpc/grpc-java/pull/9269 probably pushed the build
over the edge, but there's been evidence via flakes for a good while
that we've been reaching the limit.

b/238334438
This commit is contained in:
Eric Anderson 2022-07-08 11:45:48 -07:00
parent 0ff9f37b9e
commit 5f9ef98173
3 changed files with 3 additions and 0 deletions

View File

@ -23,6 +23,7 @@ readonly BUILD_APP_PATH="interop-testing/build/install/grpc-interop-testing"
build_java_test_app() {
echo "Building Java test app"
cd "${SRC_DIR}"
GRADLE_OPTS="-Dorg.gradle.jvmargs='-Xmx1g'" \
./gradlew --no-daemon grpc-interop-testing:installDist -x test \
-PskipCodegen=true -PskipAndroid=true --console=plain

View File

@ -23,6 +23,7 @@ readonly BUILD_APP_PATH="interop-testing/build/install/grpc-interop-testing"
build_java_test_app() {
echo "Building Java test app"
cd "${SRC_DIR}"
GRADLE_OPTS="-Dorg.gradle.jvmargs='-Xmx1g'" \
./gradlew --no-daemon grpc-interop-testing:installDist -x test \
-PskipCodegen=true -PskipAndroid=true --console=plain

View File

@ -23,6 +23,7 @@ readonly BUILD_APP_PATH="interop-testing/build/install/grpc-interop-testing"
build_java_test_app() {
echo "Building Java test app"
cd "${SRC_DIR}"
GRADLE_OPTS="-Dorg.gradle.jvmargs='-Xmx1g'" \
./gradlew --no-daemon grpc-interop-testing:installDist -x test \
-PskipCodegen=true -PskipAndroid=true --console=plain