Skip to content
This repository was archived by the owner on Apr 4, 2025. It is now read-only.

Commit e8f0c42

Browse files
committed
Reduce CI memory usage to prevent bazel JVM crashes
1 parent 78b0519 commit e8f0c42

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

.circleci/bazel.rc

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ build --experimental_repository_cache=/home/circleci/bazel_repository_cache
2323

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

0 commit comments

Comments
 (0)