Details
-
Sub-task
-
Resolution: Fixed
-
P4
-
8u231, 11.0.5, 13.0.1, 14
-
b11
-
generic
-
linux
Backports
Issue | Fix Version | Assignee | Priority | Status | Resolution | Resolved In Build |
---|---|---|---|---|---|---|
JDK-8285290 | 11.0.16-oracle | Ioi Lam | P4 | Resolved | Fixed | b04 |
JDK-8283563 | 11.0.16 | Zhengyu Gu | P4 | Resolved | Fixed | b01 |
JDK-8298077 | openjdk8u372 | Jonathan Dowland | P4 | Resolved | Fixed | b01 |
JDK-8295080 | 8u361 | Ivan Bereziuk | P4 | Resolved | Fixed | b02 |
Description
/**
* Returns an instance of the Metrics class.
*
* @return Metrics object or null if not supported on this platform.
*/
public static Metrics systemMetrics() {
try {
// We currently only support cgroupv1
Class<?> c = Class.forName("jdk.internal.platform.cgroupv1.Metrics");
[...]
}
For the cgroups v2 effort this needs to be reworked.
On a F31 system with unified hierarchy only, java -XshowSettings:system look like this:
$ bin/java -XshowSettings:system -version
Operating System Metrics:
No metrics available for this platform
openjdk version "14-internal" 2020-03-17
OpenJDK Runtime Environment (fastdebug build 14-internal+0-adhoc.sgehwolf.jdk-jdk)
OpenJDK 64-Bit Server VM (fastdebug build 14-internal+0-adhoc.sgehwolf.jdk-jdk, mixed mode, sharing)
Attachments
Issue Links
- backported by
-
JDK-8283563 Cgroups v2: Rework Metrics in java.base so as to recognize unified hierarchy
- Resolved
-
JDK-8285290 Cgroups v2: Rework Metrics in java.base so as to recognize unified hierarchy
- Resolved
-
JDK-8295080 Cgroups v2: Rework Metrics in java.base so as to recognize unified hierarchy
- Resolved
-
JDK-8298077 Cgroups v2: Rework Metrics in java.base so as to recognize unified hierarchy
- Resolved
- duplicates
-
JDK-8261150 [TESTBUG] jdk/internal/platform/cgroup/TestCgroupMetrics.java fails for - memory:getMemoryUsage
- Closed
- relates to
-
JDK-8291570 [TESTBUG] Part of JDK-8250984 absent from 11u
- Resolved
-
JDK-8239559 Cgroups: Incorrect detection logic on some systems
- Resolved
-
JDK-8240189 [TESTBUG] Some cgroup tests are failing after JDK-8231111
- Resolved
-
JDK-8244500 jtreg test error in test/hotspot/jtreg/containers/docker/TestMemoryAwareness.java
- Resolved
-
JDK-8226575 OperatingSystemMXBean should be made container aware
- Resolved
- links to
-
Commit openjdk/jdk8u-dev/c9007cd4
-
Commit openjdk/jdk11u-dev/19f26f72
-
Review openjdk/jdk8u-dev/121
-
Review openjdk/jdk11u-dev/863