Thanks to visit codestin.com
Credit goes to github.com

Skip to content

[Enhancement] use less memory while building. #2241

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
1 task done
Mister-Hope opened this issue Mar 22, 2020 · 2 comments
Closed
1 task done

[Enhancement] use less memory while building. #2241

Mister-Hope opened this issue Mar 22, 2020 · 2 comments

Comments

@Mister-Hope
Copy link
Contributor

Mister-Hope commented Mar 22, 2020

  • I confirm that this is an issue rather than a question.

It's base on #2221

The doc folder is less than 10M in size, and more than a half of it's size are images. So I think that vuepress should have the ability to build it with 2GB memory in use.

We should consider that some of the project which is using vuepress to build docs have the need to run on vitual machines with 4GB memory. But now vuepress often use more than 4GB memory itself while building.

Maybe some optimization is needed.

A demo here: https://github.com/Mister-Hope/vuepress-stress-test

It is falling on CI with the default command vuepress build

@jixuan1989
Copy link

I occur the same issue.
We have 158 markdown files.
When using vuepress v0.x, it is fine.
But after upgrade to vuepress v1.x, JS out of memory occurs, even though I set --max_old_space_size=4096

@Mister-Hope
Copy link
Contributor Author

Mister-Hope commented Apr 14, 2020

I have 500+ markdown files in my blog hhh, and it even fail somtimes when I set --max_old_space_size=8192 (I have a few markdown plugin built in)

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