Webpack.js.org: yarn build --> 100% CPU + RAM usage goes towards its limits

Created on 1 Jul 2018  路  4Comments  路  Source: webpack/webpack.js.org

When I try to build the webpack.js.org project I get 100% CPU usage constantly and RAM is rising.
My lap is not the slowest Win10 x64, 16GB RAM and 8 x i7 cores.

git clone https://github.com/webpack/webpack.js.org.git
yarn // install the deps
Open Git Bash --> yarn build   // the build starts

I have to quit the build during execution otherwise my lap gets non-responsive and I do have to do a hard-reboot.

In task manager I can also see several dozens of node.exe processes running, count is rising...

image

All 4 comments

Yeah, I have a MacbookPro i7, 16 RAM, it takes 25 mins. It is really slow that's why we are doing the Grand rebuild.

What is happening under the hood:
At this moment we use antwar, a Static site generator created by one of the original contributors to this repo, it uses Workers which use all availables cores in your system, basically occupying the entire CPU capacity.

Sorry for the trouble, Did you wanted to make a contribution or something?

No, I didn't want to contribute currently.

But this is not a really clever solution. After 5 builds the lifetime of my CPU`s decreases by 50% haha :D
I mean, if my laptop gets unresponsive, it cannot be good. During the build above I was able to do some screenshots and kill the relevant processes.

Is there an alternative? Or do I have to accept 100% CPU usage when doing yarn build?

P.S.: What is the grand rebuild ?

I set it to:
maximumWorkers: 1, but no much success.

After every "Finished writing pages" it again jumps to 100%.

I see it's getting handled, I hope that the grand rebuild takes this issue into account..

Was this page helpful?
0 / 5 - 0 ratings

Related issues

jakub-g picture jakub-g  路  3Comments

pksjce picture pksjce  路  5Comments

LakinduK picture LakinduK  路  4Comments

krutoo picture krutoo  路  3Comments

gilmoreorless picture gilmoreorless  路  4Comments