Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Javascript Heapspace error on rollup #1307

Closed
sudhir9p opened this issue Feb 17, 2017 · 3 comments
Closed

Javascript Heapspace error on rollup #1307

sudhir9p opened this issue Feb 17, 2017 · 3 comments

Comments

@sudhir9p
Copy link

I have compiled my code using ngc and ran through same heap space error and resolved it using

node --max-old-space-size=8192 node_modules/@angular/compiler-cli/src/main.js -p tsconfig-aot.json

it is getting compiled but when I run rollup like

"node_modules/.bin/rollup" -c rollup-config.js

I'm getting eror like

<--- Last few GCs --->

   58003 ms: Mark-sweep 1350.6 (1434.6) -> 1350.5 (1434.6) MB, 753.0 / 0.0 ms [allocation failure] [GC in old space requested].
   58751 ms: Mark-sweep 1350.5 (1434.6) -> 1350.5 (1434.6) MB, 747.6 / 0.0 ms [allocation failure] [GC in old space requested].
   59479 ms: Mark-sweep 1350.5 (1434.6) -> 1352.9 (1404.6) MB, 728.1 / 0.0 ms [last resort gc].
   60211 ms: Mark-sweep 1352.9 (1404.6) -> 1355.4 (1404.6) MB, 731.9 / 0.0 ms [last resort gc].


<--- JS stacktrace --->

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

Security context: 0000017B93ACFB61 <JS Object>
    1: init_scope_vars [0000017B93A04381 <undefined>:~3382] [pc=0000021C499F308D] (this=000003B07C026939 <an AST_Function with map 000001FA502ACAB9>,nesting=3)
    2: visit [0000017B93A04381 <undefined>:~3246] [pc=0000021C499EFC85] (this=000003CB4FA172A1 <a TreeWalker with map 000001FA502AEB61>,node=000003B07C026939 <an AST_Function with map 000001FA502ACAB9>,descend=000003EF887DA4C9 <JS Func...

FATAL ERROR: CALL_AND_RETRY_LAST Allocation failed - JavaScript heap out of memory

So is there any command to increase the max_old_space and run?? as like ngc??

@sudhir9p sudhir9p reopened this Feb 19, 2017
@sudhir9p
Copy link
Author

node --max-old-space-size=8192 node_modules/rollup/bin/rollup -c rollup-config.js

This worked.

@Havunen
Copy link

Havunen commented Oct 24, 2017

This seems to be related: #883

@ArjanSchouten
Copy link

It is now:

node --max-old-space-size=8192 node_modules/rollup/dist/bin/rollup -c config.js

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants