Skip to content

Commit 73616ab

Browse files
IgorMinaralxhub
authored andcommitted
fix(bazel): increase node memory limit for ng_module rule to prevent OOM for big modules (angular#28237)
This came up as a request from an internal Google team. Context: - http://cl/229881085 - https://groups.google.com/a/google.com/forum/#!topic/nodejs/GLqDEOW0MV4 PR Close angular#28237
1 parent a0cdefb commit 73616ab

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

packages/bazel/src/ng_module.bzl

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -285,6 +285,8 @@ _EXTRA_NODE_OPTIONS_FLAGS = [
285285
"--node_options=--expose-gc",
286286
# Show ~full stack traces, instead of cutting off after 10 items.
287287
"--node_options=--stack-trace-limit=100",
288+
# 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
289+
"--node_options=--max-old-space-size=2048",
288290
]
289291

290292
def ngc_compile_action(

0 commit comments

Comments
 (0)