-
Enhancement
-
Resolution: Fixed
-
P3
-
8, 11, 13, 14
Issue | Fix Version | Assignee | Priority | Status | Resolution | Resolved In Build |
---|---|---|---|---|---|---|
JDK-8236339 | 15 | Daniil Titov | P3 | Resolved | Fixed | team |
JDK-8257163 | 13.0.6 | Ekaterina Vergizova | P3 | Resolved | Fixed | b02 |
JDK-8255833 | 13-pool | Ekaterina Vergizova | P3 | Closed | Won't Fix | |
JDK-8248803 | 11.0.9 | Severin Gehwolf | P3 | Resolved | Fixed | b01 |
JDK-8252360 | openjdk8u272 | Severin Gehwolf | P3 | Resolved | Fixed | b06 |
JDK-8242287 | 8u261 | Poonam Bajaj Parhar | P3 | Resolved | Fixed | b02 |
JDK-8246888 | emb-8u261 | Poonam Bajaj Parhar | P3 | Resolved | Fixed | team |
jdk/open/src/jdk.management/unix/classes/com/sun/management/internal/OperatingSystemImpl.java contains these native methods which extract Host specific data. These methods should be examine to determine if there is a container specific source of this information.
private native long getCommittedVirtualMemorySize0();
private native long getFreePhysicalMemorySize0();
private native long getFreeSwapSpaceSize0();
private native long getMaxFileDescriptorCount0();
private native long getOpenFileDescriptorCount0();
private native long getProcessCpuTime0();
private native double getProcessCpuLoad0();
private native double getSystemCpuLoad0();
private native long getTotalPhysicalMemorySize0();
private native long getTotalSwapSpaceSize0();
These Java methods should first try to extract this information from the internal container Metrics API, if available. Otherwise it should call these existing native methods.
Here are the Container Metrics implementation classes:
jdk/open/src/java.base/share/classes/jdk/internal/platform/Container.java
jdk/open/src/java.base/share/classes/jdk/internal/platform/Metrics.java
- backported by
-
JDK-8236339 OperatingSystemMXBean should be made container aware
- Resolved
-
JDK-8242287 OperatingSystemMXBean should be made container aware
- Resolved
-
JDK-8246888 OperatingSystemMXBean should be made container aware
- Resolved
-
JDK-8248803 OperatingSystemMXBean should be made container aware
- Resolved
-
JDK-8252360 OperatingSystemMXBean should be made container aware
- Resolved
-
JDK-8257163 OperatingSystemMXBean should be made container aware
- Resolved
-
JDK-8255833 OperatingSystemMXBean should be made container aware
- Closed
- csr for
-
JDK-8228428 OperatingSystemMXBean should be made container aware
- Closed
- duplicates
-
JDK-8211848 OperatingSystemMXBean should be made Container Aware
- Closed
- relates to
-
JDK-8231111 Cgroups v2: Rework Metrics in java.base so as to recognize unified hierarchy
- Resolved
-
JDK-8258241 [8u] Missing doPrivileged() hunks from JDK-8226575
- Resolved
-
JDK-8242480 Negative value may be returned by getFreeSwapSpaceSize() in the docker
- Resolved
-
JDK-8236617 jtreg test containers/docker/TestMemoryAwareness.java fails after 8226575
- Resolved
-
JDK-8235681 Remove unnecessary workarounds in UnixOperatingSystem.c
- Resolved
-
JDK-8242430 Correct links in javadoc of OperatingSystemMXBean
- Resolved
-
JDK-8250984 Memory Docker tests fail on some Linux kernels w/o cgroupv1 swap limit capabilities
- Resolved
-
JDK-8255934 JConsole 14 and greater fails to connect to older JVM
- Closed
-
JDK-8203357 Container Metrics
- Resolved
-
JDK-8250627 Use -XX:+/-UseContainerSupport for enabling/disabling Java container metrics
- Resolved
-
JDK-8199944 Add Container MBean to JMX
- Closed