-
Notifications
You must be signed in to change notification settings - Fork 51
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
High CPU #54
Comments
What does top look like after a similar amount of time using webpack without this plugin? |
We only use Node to build our React client side app. So building without watching Node will just quit after the build process is done.. so not sure how to answer that.. |
We're using version 1.2.0 of this plugin, I tried to update to the latest now but then watch doesn't work anymore only getting:
We're using webpack version 3.12.0 |
If you remove this plugin and run If you're using Vagant, historically shared filesystems are slow. That could be a contributing factor. If the CPU stays at 40%, that also makes me suspect that webpack is polling on the shared filesystem instead of using kernel inotify events. If that's the case, reducing the number of files checked may help reduce load. See webpack's watchOptions.ignored. Consider disabling watch of
Only version 1.x will work with webpack 3. |
I'm now running this watcher locally instead of inside vagrant which seems to work better (albeit chrome block live reloading then) But it seems to use a lot of memory still, I am not sure how nice it is from me to complain on the previous major version of this module though :P although it's not super easy to update webpack version always... I though I would just add this information anyway in case someone will have time to fix it :) After changing git branch node crashed with the following report:
|
Thanks for the update @OZZlE. This looks to stem from a call https://github.com/webpack/webpack/blob/v3.12.0/lib/Stats.js#L186 As far as I can see, webpack-livereload-plugin doesn't call it. If you can find a call stack that causes it to get invoked from this plugin, then let's find a fix. |
I am using this inside Vagrant host Linux, client Mac. It seems like after a while it starts eating more and more CPU especially when I have had my Mac in sleep I need to like restart the box and start watching again or my computer is like unusable.
On my Mac I see it's vagrant VM using most CPU and when I run
top
inside the VM it says node at the top, and this is the only nodejs job I have running..Could something be improved perhaps= :)
From top inside Vagrant:
The text was updated successfully, but these errors were encountered: