Skip to content

How to fix javascript heap out of memory #399

Answered by Mister-Hope
dtbj asked this question in Q&A
Discussion options

You must be logged in to vote

Obviously 1GB machine can not be used to build a front-end project like this. You cannot built even you are using webpack or vite directly with 20k routes having content.

My point is, if you cannot built a project with this amount of pages redirectly on Vite and webpack, then the issue does not belong to vuepress.

VuePress2 already makes great improvements in scalability, and in my case, it only takes less than one-third of memory comparing with VuePress1. Also, in my test case, a 5k pages project can be built with 4GB ram, that's already reasonable IMO.

But, if you find possible memory leak, or you do have ideas reducing memory usage without taking more time, a bug report or new dicussio…

Replies: 3 comments

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Answer selected by Mister-Hope
Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
4 participants