Skip to content
This repository has been archived by the owner on Sep 16, 2021. It is now read-only.

Commit

Permalink
Limit CI memory usage
Browse files Browse the repository at this point in the history
  • Loading branch information
gregmagolan committed Aug 6, 2018
1 parent e3b0aae commit 1547dbc
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions .circleci/bazel.rc
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ build --experimental_repository_cache=/home/circleci/bazel_repository_cache

# Workaround https://github.com/bazelbuild/bazel/issues/3645
# Bazel doesn't calculate the memory ceiling correctly when running under Docker.
# Limit Bazel to consuming 3072M of RAM
build --local_resources=3072,2.0,1.0
# Limit Bazel to consuming 2560K of RAM
build --local_resources=2560,1.0,1.0
# Also limit Bazel's own JVM heap to stay within our 4G container limit
startup --host_jvm_args=-Xmx2G
startup --host_jvm_args=-Xmx1g

0 comments on commit 1547dbc

Please sign in to comment.