-
Notifications
You must be signed in to change notification settings - Fork 37
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
src/solaris/native/sun/management/LinuxOperatingSystem.c #51
base: master
Are you sure you want to change the base?
Conversation
Fix the dead loop Summary: if the /proc/stat mount point is changed in container evironment, the while loop may leaded to 100% cpu usage.
ganjianxuan seems not to be a GitHub user. You need a GitHub account to be able to sign the CLA. If you have already a GitHub account, please add the email address used for this commit to your account. You have signed the CLA already but the status is still pending? Let us recheck it. |
@UncleNine, Could you give a test to reproduce that? Thanks |
below is our test code: demo code
test
java-sideIf a application use the api "sun/management/OperatingSystemImpl.getSystemCpuLoad", it maybe I find serveral common frameworks use it: micrometer, elasticsearch |
Hi @UncleNine , |
Fix the dead loop
Summary: if the /proc/stat mount point is changed in container evironment, the while loop may leaded to 100% cpu usage.