vuejs / vuepress

📝 Minimalistic Vue-powered static site generator
https://vuepress.vuejs.org
MIT License
22.5k stars 4.77k forks source link

Fix vuepress compilation memory problem修复vuepress编译内存问题 #2448

Open SailVR opened 4 years ago

SailVR commented 4 years ago

Bug report

Steps to reproduce

What is expected?

What is actually happening?

编译vuepress时,JavaScript显示内存不够,是不是vuepress多线程编译所以占用内存太多,我用0.x版本的vuepress编译就没有任何问题,希望官方可以修复下 When compiling vuepress, JavaScript shows that there is not enough memory. Is it due to vuepress multi-threaded compilation, so it takes up too much memory. I have no problem with the 0.x version of vuepress compilation. I hope the official can fix it.

Other relevant information

kefranabg commented 4 years ago

How many pages are you trying to build? Do you have a reproduction repo?

jixuan1989 commented 4 years ago

Hi @kefranabg , we have 174 files totally, and it can be reproduced.

The codes are at https://github.com/apache/incubator-iotdb/tree/master/site and the markdowns are at https://github.com/apache/incubator-iotdb/tree/master/docs

th0r commented 1 year ago

You can try --max-concurrency option - it helped me reduce memory usage during a build from ~8G to ~3.5G.