-
Enhancement
-
Resolution: Fixed
-
P4
-
8, 11, 15, 16
-
b09
-
generic
-
linux
Issue | Fix Version | Assignee | Priority | Status | Resolution | Resolved In Build |
---|---|---|---|---|---|---|
JDK-8266898 | 15.0.4 | Ekaterina Vergizova | P4 | Resolved | Fixed | b02 |
JDK-8257747 | 13.0.6 | Ekaterina Vergizova | P4 | Resolved | Fixed | b02 |
JDK-8253247 | 11.0.10-oracle | Severin Gehwolf | P4 | Resolved | Fixed | b01 |
JDK-8251028 | 11.0.9 | Severin Gehwolf | P4 | Resolved | Fixed | b02 |
JDK-8252300 | openjdk8u272 | Severin Gehwolf | P4 | Resolved | Fixed | b05 |
JDK-8256340 | 8u291 | Kiran Sidhartha Ravikumar | P4 | Resolved | Fixed | b01 |
JDK-8259323 | 8u281 | Kiran Sidhartha Ravikumar | P4 | Resolved | Fixed | b31 |
JDK-8257684 | 8u271 | Kiran Sidhartha Ravikumar | P4 | Closed | Fixed | b35 |
JDK-8262546 | emb-8u291 | Kiran Sidhartha Ravikumar | P4 | Resolved | Fixed | team |
$ java -XX:-UseContainerSupport -Xlog:os+container=trace -version
[0.000s][trace][os,container] OSContainer::init: Initializing Container Support
[0.000s][trace][os,container] Container Support not enabled
openjdk version "15-internal" 2020-09-15
OpenJDK Runtime Environment (build 15-internal+0-adhoc.sgehwolf.openjdk-head-2)
OpenJDK 64-Bit Server VM (build 15-internal+0-adhoc.sgehwolf.openjdk-head-2, mixed mode, sharing)
The same cannot be achieved with the Java code,
jdk.internal.platform.Metrics.java and friends in the JDK. At the time
Metrics were added the only consumer of them was the Java Launcher via
-XshowSettings:system. This has changed with
OperatingSystemMXBean should be made container aware.
It is known that in certain cases the container detection code will
detect for a system to be supposedly in a container where it actually
isn't:
https://bugs.openjdk.java.net/browse/JDK-8227006?focusedCommentId=14275604&page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#comment-14275604
For hotspot there is a flag, to turn auto-detection off for exactly the
case when heuristics are wrong: -XX:-UseContainerSupport. However, this
flag has no effect on the Java metrics code. There is a risk that on
some systems the auto-detection will be wrong and might cause
regressions.
I propose to make the Java metrics code adhere to -XX:+/-
UseContainerSupport flag.
- backported by
-
JDK-8251028 Use -XX:+/-UseContainerSupport for enabling/disabling Java container metrics
- Resolved
-
JDK-8252300 Use -XX:+/-UseContainerSupport for enabling/disabling Java container metrics
- Resolved
-
JDK-8253247 Use -XX:+/-UseContainerSupport for enabling/disabling Java container metrics
- Resolved
-
JDK-8256340 Use -XX:+/-UseContainerSupport for enabling/disabling Java container metrics
- Resolved
-
JDK-8257747 Use -XX:+/-UseContainerSupport for enabling/disabling Java container metrics
- Resolved
-
JDK-8259323 Use -XX:+/-UseContainerSupport for enabling/disabling Java container metrics
- Resolved
-
JDK-8262546 Use -XX:+/-UseContainerSupport for enabling/disabling Java container metrics
- Resolved
-
JDK-8266898 Use -XX:+/-UseContainerSupport for enabling/disabling Java container metrics
- Resolved
-
JDK-8257684 Use -XX:+/-UseContainerSupport for enabling/disabling Java container metrics
- Closed
- relates to
-
JDK-8226575 OperatingSystemMXBean should be made container aware
- Resolved
-
JDK-8255003 Build failures on Solaris
- Resolved
- links to
-
Commit openjdk/jdk13u-dev/18bd8e24
-
Commit openjdk/jdk15u-dev/ca0a09e6
-
Review openjdk/jdk13u-dev/38
-
Review openjdk/jdk15u-dev/45