Skip to content
This repository has been archived by the owner on Mar 20, 2024. It is now read-only.

node option about rollup_bundle #374

Closed
zengkai0915 opened this issue Apr 19, 2019 · 0 comments
Closed

node option about rollup_bundle #374

zengkai0915 opened this issue Apr 19, 2019 · 0 comments

Comments

@zengkai0915
Copy link

When bazel build rollup_bundle on my app, I got this error message:

FATAL ERROR: Ineffective mark-compacts near heap limit Allocation failed - JavaScript heap out of memory
 1: 0x8dc510 node::Abort() [/home/kai/.cache/bazel/_bazel_kai/1ad8c5d2ecd20c0d73c5230ec83122bc/external/nodejs/bin/nodejs/bin/node]
 2: 0x8dc55c  [/home/kai/.cache/bazel/_bazel_kai/1ad8c5d2ecd20c0d73c5230ec83122bc/external/nodejs/bin/nodejs/bin/node]
 ....

<--- Last few GCs --->

[2:0x3898fb0]    23843 ms: Scavenge 1367.1 (1421.9) -> 1366.2 (1422.4) MB, 1.3 / 0.0 ms  (average mu = 0.163, current mu = 0.183) allocation failure 
[2:0x3898fb0]    23845 ms: Scavenge 1367.1 (1422.4) -> 1366.3 (1422.9) MB, 1.4 / 0.0 ms  (average mu = 0.163, current mu = 0.183) allocation failure 
[2:0x3898fb0]    23848 ms: Scavenge 1367.1 (1422.9) -> 1366.4 (1423.4) MB, 1.4 / 0.0 ms  (average mu = 0.163, current mu = 0.183) allocation failure 


<--- JS stacktrace --->

==== JS stack trace =========================================

    0: ExitFrame [pc: 0x211f0755be1d]
Security context: 0x00106c79e6e9 <JSObject>
    1: indent [0xe6ba0910209] [/home/kai/.cache/bazel/_bazel_kai/1ad8c5d2ecd20c0d73c5230ec83122bc/sandbox/linux-sandbox/1/execroot/logi/bazel-out/host/bin/external/build_bazel_rules_nodejs/internal/rollup/rollup.runfiles/build_bazel_rules_nodejs_rollup_deps/node_modules/rollup/dist/rollup.js:~1291] [pc=0x211f0806b92c](this=0x2b50b06d6801 <MagicString map = 0...

Seems that it should config heap memory for node. How can I add this config?

environment

node version:     10.15.3
angular version:  8.0.0-beta.11
rollup version:   1.3.1
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant