Skip to content

Commit 256ef8b

Browse files
sergiitkejona86
andauthored
xds: Allow Gradle to use more memory when building interop (#10350)
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 Co-authored-by: Eric Anderson <[email protected]>
1 parent 6380a4d commit 256ef8b

File tree

3 files changed

+3
-0
lines changed

3 files changed

+3
-0
lines changed

buildscripts/kokoro/psm-security.sh

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,7 @@ readonly BUILD_APP_PATH="interop-testing/build/install/grpc-interop-testing"
2323
build_java_test_app() {
2424
echo "Building Java test app"
2525
cd "${SRC_DIR}"
26+
GRADLE_OPTS="-Dorg.gradle.jvmargs='-Xmx1g'" \
2627
./gradlew --no-daemon grpc-interop-testing:installDist -x test \
2728
-PskipCodegen=true -PskipAndroid=true --console=plain
2829

buildscripts/kokoro/xds_k8s_lb.sh

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,7 @@ readonly BUILD_APP_PATH="interop-testing/build/install/grpc-interop-testing"
2323
build_java_test_app() {
2424
echo "Building Java test app"
2525
cd "${SRC_DIR}"
26+
GRADLE_OPTS="-Dorg.gradle.jvmargs='-Xmx1g'" \
2627
./gradlew --no-daemon grpc-interop-testing:installDist -x test \
2728
-PskipCodegen=true -PskipAndroid=true --console=plain
2829

buildscripts/kokoro/xds_url_map.sh

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,7 @@ readonly BUILD_APP_PATH="interop-testing/build/install/grpc-interop-testing"
2323
build_java_test_app() {
2424
echo "Building Java test app"
2525
cd "${SRC_DIR}"
26+
GRADLE_OPTS="-Dorg.gradle.jvmargs='-Xmx1g'" \
2627
./gradlew --no-daemon grpc-interop-testing:installDist -x test \
2728
-PskipCodegen=true -PskipAndroid=true --console=plain
2829

0 commit comments

Comments
 (0)