Skip to content

SBG may fail when parsing big JS files #1430

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

Closed
vmutafov opened this issue Jul 23, 2019 · 0 comments
Closed

SBG may fail when parsing big JS files #1430

vmutafov opened this issue Jul 23, 2019 · 0 comments
Milestone

Comments

@vmutafov
Copy link
Contributor

If there are many big JS files to be parsed by the JS parser in the SBG, it may fail with V8 Out-of-Memory exception. This happens rarely but, still, there might be a problem with the default webpack flow.

The JS parser in the SBG is ran as a Node process and if it is not started with a max heap size flag it uses V8's default heap size which is around 1.7gb.

We should start the Node process with a bigger available amount of memory but still allow users to provide the NODE_OPTIONS environment variable to manually change the Node configs.

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

2 participants