Skip to content

Commit

Permalink
xds: Allow Gradle to use more memory when building interop
Browse files Browse the repository at this point in the history
Should fix "Expiring Daemon because JVM heap space is exhausted".

#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
  • Loading branch information
ejona86 committed Jul 8, 2022
1 parent 0ff9f37 commit 5f9ef98
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 0 deletions.
1 change: 1 addition & 0 deletions buildscripts/kokoro/psm-security.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down
1 change: 1 addition & 0 deletions buildscripts/kokoro/xds_k8s_lb.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down
1 change: 1 addition & 0 deletions buildscripts/kokoro/xds_url_map.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down

0 comments on commit 5f9ef98

Please sign in to comment.