-
Notifications
You must be signed in to change notification settings - Fork 2.6k
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
Poor pm2 watch performance on APFS when including node_modules #4185
Comments
Hi there, are there any troubleshooting steps that you'd recommend? Thanks! |
@Unitech I've been troubleshooting. Some insight would really be appreciated. If I specify I took one of the macOS 10.14 machines and reformatted it with APFS in 10.13 and the performance problem still happens. |
Hey @fluxsauce Thanks for this detailed report but I did not managed to reproduce this issue on a macOS 10.13. For information, the watch & restart system is handled by chokidar module Else if option tweaking does not solve this issue, you can cross post this issue on chokidar repository |
@fluxsauce thanks for this report. I'm experiencing the same issue. When I install PM2 I'm running into this issue and wondering if it's somehow related: paulmillr/chokidar#828 |
Seems like I was able to solve my issue by uninstalling pm2 and then installing again with |
@freshlogic the This is what we're using:
I was able to reduce, but not completely eliminate some of the performance problems by manually updating |
Chokidar 3.0 will land soon, fixing many performance issues. Also PM2 4.0 will be released in one month. Stay tuned. |
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions. |
Our team has been scratching their heads on this one. Happy to provide any additional technical info and facilitate any suggested troubleshooting.
We've been using pm2 in production for over three years and have been transitioning from nodemon to pm2 locally over the past year or so.
We all have MacBook Pro laptops with fairly similar specs, each of them has a fresh install (not upgrade) of macOS Mojave.
Some of them experience massive performance problems when in watch mode and some do not. Upon investigation, the problem manifests itself in incredibly high CPU utilization (150%-250%) and
Activity Monitor > PM2 vx.x.x: God Daemon > Statistics > Unix System Calls
continually increments, sometimes 100,000 a second.Some key points:
n
Here's a table for comparisons. "Services" refers to services required for our stack, such as
redis
,elasticsearch
, and so forth.We generate the PM2 configuration startup script so they're really consistent. Here's an example:
pm2 report with no problem
pm2 report with problem
This is the first time in years we've ever had a problem with
pm2
, and it's a weird one. Thanks for everything so far, and in advance!The text was updated successfully, but these errors were encountered: