-
Notifications
You must be signed in to change notification settings - Fork 12k
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 usage on ng serve #17330
Comments
Hi @linocatucci, is it possible to share a reproduction or a link to your project? This might be related to your directory structure so its really important to get an accurate repro to diagnose this. |
@linocatucci I also run into this from time to time but it's difficult to reproduce.. can I just say thank you for introducing me to the "standard-version" npm module.. didn't know it and it seems pretty helpful. Sorry for the off topic. Fwiw I*m also using a Macbook Pro with Node 12 and it happens to me maybe once a day. Have you tried updating to Angular9? |
Hello All, I have installed my project on a new MacBook and I don't have this problem any more. Very weird because I don't have fsevents installed at all at the moment... |
Closing as per above comment. |
I am facing same issue now. after mac update, my cpu usage gone 400%. please advise |
I solved the problem bij installing fsevents: npm i fsevents, you can install it globally with -g too.
Verstuurd vanaf mijn iPhone
… Op 24 apr. 2020 om 01:24 heeft Dean ***@***.***> het volgende geschreven:
I am facing same issue now. after mac update, my cpu usage gone 400%. please advise
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub, or unsubscribe.
|
I installed locally as well as globally (npm i fsevents -g). but, still, the problem is not solved. my CPU utilization is 400% and above my mac version is: 10.15.4 |
Had the same issue, the problem was in updating MacOs to Catalyna. fsevents was installed in all my projects, but was not used due to failing node-gyp instalation, as a result files were pooled by watcher and The solution is to reinstall CommandLineTools and then reinstall fsevents in the project. |
I had this fixed a month ago, by installing
Update The following helped me: https://stackoverflow.com/questions/61816143/angular-cli-ng-serve-high-cpu-usage-from-node-process (use polling) |
This issue has been automatically locked due to inactivity. Read more about our automatic conversation locking policy. This action has been performed automatically by a bot. |
hello,
i am running Angular version 8.2.6 with Node version 12.16.0 on a MacBook Pro.
MacBook Pro
macOS Catalina version 10.15.4
When run "ng serve" or "ng serve --aot" CPU usage is upper 100% and performance is really bad.
I have installed fsevents, which is now version 2.1.2, but still there is a high cpu
consumption.
Does anybody has any ideas how to solve this.
Cheers,
Lino
The text was updated successfully, but these errors were encountered: