Skip to content
Browse files

fix(bazel): increase memory limit of ngc under bazel from 2 to 4 GB (#…


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
  • Loading branch information...
alxhub authored and kara committed Jul 22, 2019
1 parent c845a7b commit 5a8eb924ba6c74701a313b337c0f62b318376dc5
Showing with 2 additions and 2 deletions.
  1. +2 −2 packages/bazel/src/ng_module.bzl
@@ -353,8 +353,8 @@ _EXTRA_NODE_OPTIONS_FLAGS = [
# Show ~full stack traces, instead of cutting off after 10 items.
# 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
# Give 4 GB RAM to node to allow bigger google3 modules to compile.

def ngc_compile_action(

0 comments on commit 5a8eb92

Please sign in to comment.
You can’t perform that action at this time.