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

Out of memory while generating a huge blog #1735

Closed
ubenzer opened this issue Feb 1, 2016 · 2 comments
Closed

Out of memory while generating a huge blog #1735

ubenzer opened this issue Feb 1, 2016 · 2 comments
Labels
bug

Comments

@ubenzer
Copy link

@ubenzer ubenzer commented Feb 1, 2016

I imported my Wordpress blog with ~750 posts to default setup of hexo. I got the following error:

FATAL ERROR: CALL_AND_RETRY_LAST Allocation failed - process out of memory

In file /Users/ub/.nvm/versions/node/v5.3.0/lib/node_modules/hexo-cli/bin/hexo changing #!/usr/bin/env node to #!/usr/bin/env node --max_old_space_size=8192 worked.

It would be great, if there is a way to give memory limit without editing the source.

@lprajus2007
Copy link

@lprajus2007 lprajus2007 commented Feb 16, 2016

the default memory for nodejs is 514mb. There shouldn't be any issue with setting a higher max_old_space_size afaik

leesei added a commit to hexojs/site that referenced this issue Feb 19, 2016
@Xuanwo Xuanwo added the bug label Feb 20, 2016
@leesei
Copy link
Member

@leesei leesei commented Feb 20, 2016

We've added this to troubleshooting.md.
Since not every user encounters this use case, I don't think we should make it the default.

But we may look into why hexo is using so much memory during generation.
We need a large test post set, will create new issue for that.

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

Successfully merging a pull request may close this issue.

None yet
4 participants
You can’t perform that action at this time.