Allow Gradle to use more memory when building Java interop (#30249)

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/238438006
pull/30220/head
Eric Anderson 2 years ago committed by GitHub
parent 22b441f2fc
commit f4c162f30d
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 2
      templates/tools/dockerfile/java_build_interop.sh.include
  2. 2
      tools/dockerfile/interoptest/grpc_interop_java/build_interop.sh

@ -21,6 +21,8 @@ cp -r /var/local/jenkins/grpc-java /tmp/grpc-java
# copy service account keys if available
cp -r /var/local/jenkins/service_account $HOME || true
export GRADLE_OPTS="-Dorg.gradle.jvmargs='-Xmx1g'"
pushd /tmp/grpc-java
# make two attempts; downloads can fail. See https://github.com/grpc/grpc/issues/18892
./gradlew --no-daemon :grpc-interop-testing:installDist -PskipCodegen=true -PskipAndroid=true || ${'\\'}

@ -21,6 +21,8 @@ cp -r /var/local/jenkins/grpc-java /tmp/grpc-java
# copy service account keys if available
cp -r /var/local/jenkins/service_account $HOME || true
export GRADLE_OPTS="-Dorg.gradle.jvmargs='-Xmx1g'"
pushd /tmp/grpc-java
# make two attempts; downloads can fail. See https://github.com/grpc/grpc/issues/18892
./gradlew --no-daemon :grpc-interop-testing:installDist -PskipCodegen=true -PskipAndroid=true || \

Loading…
Cancel
Save