- Notifications
You must be signed in to change notification settings - Fork 4k
Closed
Labels
Description
Describe the bug
We have had a couple Windows users report excessive CPU use of Powershell when it is used to calculate the number of handles being used by RabbitMQ. This was introduced by #6614 as a fix to #6613.
- https://stackoverflow.com/questions/76575596/rabbitmq-continually-spawns-powershell-which-results-in-100-cpu-usage
- https://groups.google.com/g/rabbitmq-users/c/hYOCHG1aCss
- Hight CPU usage on handle count executed from powershell #8541
We know that handle.exe sometimes does not return valid information, and of course sometimes is not installed. On Windows, keeping track of used handles (file descriptors) is not as critical as on Linux. Perhaps the best solution is to remove the Powershell backup.
Reproduction steps
Run RabbitMQ on Windows without installing handle.exe.
Expected behavior
No high CPU usage no matter how we calculate handle usage.
Additional context
N/A