File / socket handle counts vs just a "general" handle count #6
Replies: 5 comments 2 replies
-
|
I tried out GetProcessHandleCount here: 4b2ae78 Feel free to experiment with that patch and check out the handle counts. From what I've seen so far it looks like the total count is usually much higher than the file handle count alone, mostly with Event handles according to handle.exe. I see that branch taking 25ms on a release build vs the ~100ms it takes on master (vs ~225ms for handle.exe). |
Beta Was this translation helpful? Give feedback.
-
|
So, an option to return the total count? Sounds good to me. |
Beta Was this translation helpful? Give feedback.
-
|
Thanks @the-mikedavis! I'm going to test that out soon. I'm hoping the non-file, non-socket handle count will stay somewhat stable as various other RabbitMQ bits increase in count (vhosts, connections, etc) and that Another reason to have two options is the "Missing |
Beta Was this translation helpful? Give feedback.
-
|
@lukebakken can you please elaborate on how RabbitMQ would use this option? We report file and socket counts as node metrics. |
Beta Was this translation helpful? Give feedback.
-
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
I don't know if @the-mikedavis used this as a guide for his implementation of file handle counts in this project ...
rabbitmq/rabbitmq-server#8700 (comment)
...but as he pointed out in his comments for the feature, it uses an unofficial NT API as well as requires enumerating all of the handles in the system.
Since file/socket handle counts don't really matter as much on Windows as other systems, what do you think about having an option to use
GetProcessHandleCountto get a general idea of handles for a PID?cc @the-mikedavis @michaelklishin
Beta Was this translation helpful? Give feedback.
All reactions