Skip to content

Commit

Permalink
buildscripts: Fix Xmx JVM flag propagation in GRADLE_OPTS
Browse files Browse the repository at this point in the history
* buildscripts: Fix Xmx JVM flag propagation in GRADLE_OPTS
* buildscripts: double Java memory allocation pool

To reduce periodic OOMs of the "GitHub Actions Linux Testing / tests (11) (pull_request)" job.
  • Loading branch information
sergiitk authored Jun 30, 2022
1 parent 74137b0 commit 91fcc33
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion buildscripts/kokoro/unix.sh
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ GRADLE_FLAGS+=" -PfailOnWarnings=true"
GRADLE_FLAGS+=" -PerrorProne=true"
GRADLE_FLAGS+=" -PskipAndroid=true"
GRADLE_FLAGS+=" -Dorg.gradle.parallel=true"
export GRADLE_OPTS="-Xmx512m"
export GRADLE_OPTS="-Dorg.gradle.jvmargs='-Xmx1g'"

# Make protobuf discoverable by :grpc-compiler
export LD_LIBRARY_PATH=/tmp/protobuf/lib
Expand Down

0 comments on commit 91fcc33

Please sign in to comment.