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

Ineffective mark-compacts near heap limit Allocation failed - JavaScript heap out of memory #543

Closed
VivienZhai opened this issue Dec 5, 2022 · 2 comments

Comments

@VivienZhai
Copy link

Issue description

I use webpack-bundle-analyzer when I build angular production version. It generates stats.json which is 752459 kb。 Then I start running stats.json, it throws the error " JavaScript heap out of memory". Is there any way to increase running memory, like node's '--max_old_space_size=***'?

Technical info

  ng build --prod --stats-json
  webpack-bundle-analyzer dist/console/stats.json 

Error info

Security context: 0x0283582c08d1 <JSObject>
    0: builtin exit frame: parse(this=0x0283582dee79 <Object map = 000003C23B783639>,0x02922af80119 <Very long string[796105331]>,0x0283582dee79 <Object map = 000003C23B783639>)

    1: readStatsFromFile [0000022E07B0CE11] [D:\WorkSpace\***\node_modules\webpack-bundle-analyzer\lib\analyzer.js:179] [bytecode=0000002DF5A93731 offset=36](this=0x013e19b80991 <Object map = 000000F1194343...

FATAL ERROR: Ineffective mark-compacts near heap limit Allocation failed - JavaScript heap out of memory
@valscion
Copy link
Member

valscion commented Dec 7, 2022

I think this might be a duplicate of #492 but the error you're seeing is different, although the reason why it fails sounds like the same reason to me.

@valscion
Copy link
Member

I suppose this has been resolved now by #423. Feel free to try v4.8.0 and let us know if your issue wasn't resolved.

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

No branches or pull requests

2 participants