RFC 8299037 Make UseContainerCpuShares true by default for JDK 8u 11u 17u
Ioi Lam
ioi.lam at oracle.com
Mon Dec 19 17:30:41 UTC 2022
WhenJDK-8281181 <https://bugs.openjdk.org/browse/JDK-8281181>was
backported to 17u and 11u, some users reported that their containerized
workload experienced OOM.
Although the fix inJDK-8281181
<https://bugs.openjdk.org/browse/JDK-8281181>is technically "correct" as
CPU shares shouldn't be used to express a limit (see discussion in the
CSRJDK-8281571 <https://bugs.openjdk.org/browse/JDK-8281571>),
unfortunately some workload had been configured that way due to how the
JDK historically mis-interpreted CPU shares.
Introducing a significant behavioral change in an update release
probably isn't a good idea.
The proposal is to change the default value of UseContainerCpuShares
from true to false, so users of update releases up to 17u will need to
opt into the new behavior.
In the next LTS release, the UseContainerCpuShares flag will have no
effect. The new behavior will always be used.
(PS, since UseContainerCpuShares has been removed in JDK 21, we may need
to add it back as an obsolete flag to ease the transition from 17u to 21).
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://mail.openjdk.org/pipermail/hotspot-runtime-dev/attachments/20221219/8a6a124e/attachment-0001.htm>
More information about the hotspot-runtime-dev
mailing list