Nx processes not quitting, consuming 100% CPU
louisnw01 opened this issue · 0 comments
louisnw01 commented
Current Behavior
When running nx serve in terminal, if that terminal window is quit (without CTRL+C'ing the nx server) there will be dangling node processes visible in Activity Monitor that consume 100% CPU; they will not stop until we manually force quit.
Expected Behavior
All scenarios of terminating nx should kill all processes, rather than needing to be manually quit.
GitHub Repo
No response
Steps to Reproduce
- Run any process that uses nx serve in Terminal
- cmd+W the terminal (or quit it) without CTRL+C'ing the process
- Check Activity Monitor; a node process will be consuming 100% CPU
- Failure Logs / Images / Videos
Nx Report
Node : 23.4.0
OS : darwin-arm64
yarn : 1.22.22
nx (global) : 20.2.2
nx : 19.1.1
@nx/js : 19.1.1
@nrwl/js : 19.3.0
@nx/jest : 19.1.1
@nrwl/jest : 19.3.0
@nx/linter : 19.1.1
@nx/eslint : 19.1.1
@nx/workspace : 17.3.2
@nx/devkit : 19.1.1
@nx/esbuild : 19.1.1
@nx/eslint-plugin : 19.1.1
@nx/nest : 19.1.1
@nrwl/nest : 19.3.0
@nx/next : 17.3.2
@nx/node : 19.3.0
@nx/react : 17.3.2
@nrwl/tao : 19.3.0
@nx/web : 19.1.1
@nx/webpack : 19.1.1
typescript : 5.4.5
---------------------------------------
Registered Plugins:
@nx/eslint/plugin
@nx/jest/plugin
@nx/webpack/plugin
@nx/next/plugin
---------------------------------------
The following packages should match the installed version of nx
- @nrwl/js@19.3.0
- @nrwl/jest@19.3.0
- @nx/workspace@17.3.2
- @nrwl/workspace@17.3.2
- @nrwl/nest@19.3.0
- @nx/next@17.3.2
- @nrwl/next@17.3.2
- @nx/node@19.3.0
- @nrwl/node@19.3.0
- @nx/react@17.3.2
- @nrwl/react@17.3.2
- @nrwl/tao@19.3.0
Failure Logs
Package Manager Version
1.22.22 (yarn)
Operating System
- macOS
- Linux
- Windows
- Other (Please specify)
Additional Information
No response