-
Notifications
You must be signed in to change notification settings - Fork 232
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
8269851: OperatingSystemMXBean getProcessCpuLoad reports incorrect process cpu usage in containers #183
Conversation
👋 Welcome back sgehwolf! A progress list of the required criteria for merging this PR into |
This backport pull request has now been updated with issue from the original commit. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM. As JDK17 is LTS, it should be backported there, too.
@jerboaa This change now passes all automated pre-integration checks. After integration, the commit message for the final commit will be:
You can use pull request commands such as /summary, /contributor and /issue to adjust it as needed. At the time when this comment was updated there had been 2 new commits pushed to the
Please see this link for an up-to-date comparison between the source branch of this pull request and the ➡️ To integrate this PR with the above commit message to the |
Thanks for the review. Yes, I'll try to get it into JDK 17 too. |
/integrate |
Going to push as commit 52a32a7.
Your commit was automatically rebased without conflicts. |
Please review this backport of JDK-8269851 to OpenJDK 11u. That code stream is affected by the same bug and should get fixed in the same way as it got fixed with JDK-8265836 for system CPU load, but for process CPU load.
The patch only differs minimally from the JDK 18 patch, but doesn't apply clean due to the following reason. This version uses
getSystemCpuLoad()
andgetSystemCpuLoad0()
instead ofgetCpuLoad()
andgetCpuLoad0()
.Testing: Manually using the reproducer code from the bug and tier1 on Linux x86_64.
Thoughts?
Progress
Issue
Reviewers
Reviewing
Using
git
Checkout this PR locally:
$ git fetch https://git.openjdk.java.net/jdk11u-dev pull/183/head:pull/183
$ git checkout pull/183
Update a local copy of the PR:
$ git checkout pull/183
$ git pull https://git.openjdk.java.net/jdk11u-dev pull/183/head
Using Skara CLI tools
Checkout this PR locally:
$ git pr checkout 183
View PR using the GUI difftool:
$ git pr show -t 183
Using diff file
Download this PR as a diff file:
https://git.openjdk.java.net/jdk11u-dev/pull/183.diff