diff options
author | Eric Anderson <ejona@google.com> | 2016-02-12 08:48:41 -0800 |
---|---|---|
committer | Eric Anderson <ejona@google.com> | 2016-02-21 16:59:44 -0800 |
commit | 56dca036db679f217baa580a241d2a26694f0dd8 (patch) | |
tree | da5909e2a00bcfe4797d388c1ea376c4aadda716 /.travis.yml | |
parent | 86fd2523ec1512f5417d10950643e608d2b29bc6 (diff) | |
download | grpc-grpc-java-56dca036db679f217baa580a241d2a26694f0dd8.tar.gz |
Limit memory during build
When running :grcp-interop-testing:test, Travis has been hanging on OS X
or flaking on Linux with:
> Process 'Gradle Test Executor 4' finished with non-zero exit value 137
Exit code 137 indicates SIGKILL (128 + 9) and is most likely caused by
the JVM being killed by the kernel's OOM killer.
The limit in .travis.yml is 2x what was necessary to do a parallel
build. The main test memory limit in build.gradle is well above 16m
which is necessary for the tests. Interop-testing is well above 64m
which is necessary for interop-testing, but we use 1.5g to help prevent
timeouts on Travis.
Protobuf and protobuf-nano each have one tests that decodes a proto >64M
in size, which prevents them from running with less than 512m and 768m,
respectively.
Diffstat (limited to '.travis.yml')
-rw-r--r-- | .travis.yml | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/.travis.yml b/.travis.yml index fd1d80cf3..52b611b74 100644 --- a/.travis.yml +++ b/.travis.yml @@ -4,6 +4,7 @@ language: java env: global: + - GRADLE_OPTS=-Xmx512m - PROTOBUF_VERSION=3.0.0-beta-2 - LDFLAGS=-L/tmp/protobuf-${PROTOBUF_VERSION}/lib - CXXFLAGS=-I/tmp/protobuf-${PROTOBUF_VERSION}/include |