-
Notifications
You must be signed in to change notification settings - Fork 4k
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
Allow v8 to allocate more heap #1336
Conversation
Wow. I am surprised that this is necessary. Thanks. |
Please hold on merging - there are more cases where v8 is running out of memory, for example, when building modules. More patches forthcoming. |
8353e1b
to
a79d727
Compare
OK, I've updated all the scripts I could find that invoke |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Good for me, but as I commented, I think it could be nice to allow people to use NODE_OPTIONS to alter other knobs (I do this quite a bit) - so I would simply forward the existing NODE_OPTIONS...
build.sh
Outdated
@@ -41,6 +41,7 @@ BUILD_INDICATOR=".BUILD_COMPLETED" | |||
rm -rf $BUILD_INDICATOR | |||
|
|||
export PATH=node_modules/.bin:$PATH | |||
export NODE_OPTIONS="--max-old-space-size=4096" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
If possible, I'd like those to be additive:
export NODE_OPTIONS="--max-old-space-size=4096 ${NODE_OPTIONS}"
a79d727
to
9efe413
Compare
708f29e
to
9379d5d
Compare
Prevent out-of-memory errors encountered during `lerna bootstrap` on certain systems by allowing Node's v8 engine to allocate more heap. The default, even on 64-bit architectures, is too small (1.4GB) to complete compilation successfully, so we set it to 4GB for the bootstrap phase.
9379d5d
to
4bf6938
Compare
@RomainMuller Addressed your issues - PTAL |
@otterley awesome! Thank you very much!! |
Prevent out-of-memory errors encountered during
lerna bootstrap
oncertain systems by allowing Node's v8 engine to allocate more heap. The
default, even on 64-bit architectures, is too small (1.4GB) to
complete compilation successfully, so we set it to 4GB for the bootstrap
phase.
Fixes #1335
By submitting this pull request, I confirm that my contribution is made under the terms of the Apache-2.0 license.