-
Notifications
You must be signed in to change notification settings - Fork 3.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
[Bug] incorrect CPU usage collected by pulsar #17815
Comments
taskset broker to some CPUs in the system [Bug] incorrect CPU usage collected by pulsar apache#17815 Minimal reproduce step enable CGROUP assign 23 CPUs to broker process,while there are 40 CPUs in the system taskset fffffe0000 bin/*** What did you expect to see? cpu usage is smaller than 100% What did you see instead? cpu usage is greater than 100%,and the cpu usage reported by pulsar need to be fixed by multiply 23/40. for example,pulsar could report 150%,but the real cpu usage is 150*23/40=86.25%
Thanks for your contribution! |
One workaround for the above issue is to add JVM option |
actually,we restrict pulsar broker to use 23 CPU cores on purpose. i wonder whether there are any problem to set a dummy value 40.
|
The issue had no activity for 30 days, mark with Stale label. |
Addressed by #16832 |
Search before asking
Version
pulsar 2.9.3
linux 4.19.16
Minimal reproduce step
taskset fffffe0000 bin/***
What did you expect to see?
What did you see instead?
Anything else?
this is because Runtime.getRuntime().availableProcessors() method return 23, which is the number of processors can be utilized by this process, but what we need is 40.
we could retrieve metadata from ZK, and verify that the limit of cpu is 2300, not 4000.
Are you willing to submit a PR?
The text was updated successfully, but these errors were encountered: