-
Notifications
You must be signed in to change notification settings - Fork 4.8k
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
FATAL ERROR: CALL_AND_RETRY_LAST Allocation failed - JavaScript heap out of memory #1819
Comments
you are running a huge docs. I think it's more relevant to your node env actually and the size of your docs that is really really big |
Node --max_old_space_size=4096 is used in package.json
Once this problem is resolved, it is still expected to be specified by configuration |
Did you resolve it ? If yes we should add it in the FAQ |
i think a big issue here is that we are using readFile instead of stream. The readfile will wait till all the content has been readen. The second aspect problem is when the file is read we save in memory a huge object containing the content. But i actually can't figure out how to implement readstream i will need to test solution |
|
Ok but it's definitely just a temp fix |
Thank you, my document does seem to be a little large, I want to wait for a certain number of articles on a certain topic when the number of a separate project |
the solution would be to add a combo of child process and stream |
i will work on a workaround but it will take time @zq99299 i will update this thread if i have informations |
is there any update now in 2021? |
For large documents, this can be difficult to solve because of the build pains, I have split up 10 or so repositories 对超大文档,构建吃力,这个可能很难解决,我都拆分了 10 来个仓库了 |
Bug report
Steps to reproduce
What is expected?
Normal build
What is actually happening?
Other relevant information
An error occurred while building the repository:https://github.com/zq99299/note-book
The text was updated successfully, but these errors were encountered: