Skip to content

Commit 5a8eb92

Browse files
alxhubkara
authored andcommittedJul 22, 2019
fix(bazel): increase memory limit of ngc under bazel from 2 to 4 GB (#31784)
This commit bumps the heap size of node/ngc under bazel to 4 GB instead of the previous 2 GB. This brings it in sync with what the TS compiler uses in g3, and fixes a bug where ngc would crash with OOM in worker mode. PR Close #31784
1 parent c845a7b commit 5a8eb92

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed
 

‎packages/bazel/src/ng_module.bzl

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -353,8 +353,8 @@ _EXTRA_NODE_OPTIONS_FLAGS = [
353353
"--node_options=--expose-gc",
354354
# Show ~full stack traces, instead of cutting off after 10 items.
355355
"--node_options=--stack-trace-limit=100",
356-
# Give 2 GB RAM to node to make bigger google3 modules to compile, we should be able to drop this after Ivy/ngtsc is the default in g3
357-
"--node_options=--max-old-space-size=2048",
356+
# Give 4 GB RAM to node to allow bigger google3 modules to compile.
357+
"--node_options=--max-old-space-size=4096",
358358
]
359359

360360
def ngc_compile_action(

0 commit comments

Comments
 (0)
Please sign in to comment.