From 5a8eb924ba6c74701a313b337c0f62b318376dc5 Mon Sep 17 00:00:00 2001 From: Alex Rickabaugh Date: Mon, 22 Jul 2019 11:50:38 -0700 Subject: [PATCH] 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 --- packages/bazel/src/ng_module.bzl | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/packages/bazel/src/ng_module.bzl b/packages/bazel/src/ng_module.bzl index 77ab273fa3..c9a93c2438 100644 --- a/packages/bazel/src/ng_module.bzl +++ b/packages/bazel/src/ng_module.bzl @@ -353,8 +353,8 @@ _EXTRA_NODE_OPTIONS_FLAGS = [ "--node_options=--expose-gc", # Show ~full stack traces, instead of cutting off after 10 items. "--node_options=--stack-trace-limit=100", - # 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 - "--node_options=--max-old-space-size=2048", + # Give 4 GB RAM to node to allow bigger google3 modules to compile. + "--node_options=--max-old-space-size=4096", ] def ngc_compile_action(