JDK-8288367 : Release Note: CPU Shares Ignored When Computing Active Processor Count
  • Type: Sub-task
  • Component: hotspot
  • Sub-Component: runtime
  • Affected Version:
    11.0.17-oracle,17.0.4-oracle,18.0.2,19 11.0.17-oracle,17.0.4-oracle,18.0.2,19
  • Priority: P4
  • Status: Resolved
  • Resolution: Delivered
  • Submitted: 2022-06-13
  • Updated: 2022-06-16
  • Resolved: 2022-06-16
The Version table provides details related to the release that this issue/RFE will be addressed.

Unresolved : Release in which this issue/RFE will be addressed.
Resolved: Release in which this issue/RFE has been resolved.
Fixed : Release in which this issue/RFE has been fixed. The release containing this fix may be available for download as an Early Access Release or a General Availability Release.

To download the current JDK release, click here.
JDK 11 JDK 17 JDK 18 JDK 19
11.0.17-oracleResolved 17.0.4-oracleResolved 18.0.2Resolved 19Resolved
Description
Previous JDK releases used an incorrect interpretation of the Linux cgroups parameter "cpu.shares". This might cause the JVM to use fewer CPUs than available, leading to an under utilization of CPU resources when the JVM is used inside a container.

Starting from this JDK release, by default, the JVM no longer considers "cpu.shares" when deciding the number of threads to be used by the various thread pools. The `-XX:+UseContainerCpuShares` command-line option can be used to revert to the previous behavior. This option is deprecated and may be removed in a future JDK release.

Comments
Reclosing issue
16-06-2022

Reopening to correct reporting error: Backports don't match affects version 18.0.2, 17.0.4-oracle
16-06-2022

Thanks David!
14-06-2022

Changed summary to be descriptive title
13-06-2022

Fixed typo and misc. edits.
13-06-2022