-
Bug
-
Resolution: Cannot Reproduce
-
P3
-
None
-
17.0.16-oracle
-
x86_64
-
linux
Suite: Hotspot
JDK: jdk-17.0.16+1
Test: containers/docker/TestCPUAwareness.java
OS: Linux x64
Logs :
Checking OperatingSystemMXBean
Metrics instance: non-null
Metrics.getMemoryAndSwapLimit() == -1
Metrics.getMemoryLimit() == -1
Metrics.getMemoryAndSwapUsage() == 29208576
Metrics.getMemoryUsage() == 29470720
[0.053s][trace][os,container] total physical memory: 32856084480
[0.053s][trace][os,container] Path to /memory.max is /sys/fs/cgroup/memory.max
[0.053s][trace][os,container] Raw value for memory limit is: max
[0.053s][trace][os,container] Memory Limit is: Unlimited
[0.053s][debug][os,container] container memory limit unlimited: -1, using host value 32856084480
[0.056s][trace][os,container] Path to /cpu.max is /sys/fs/cgroup/cpu.max
[0.056s][trace][os,container] Raw value for CPU quota is: 200000
[0.056s][trace][os,container] CPU Quota is: 200000
[0.056s][trace][os,container] Path to /cpu.max is /sys/fs/cgroup/cpu.max
[0.056s][trace][os,container] CPU Period is: 100000
[0.056s][trace][os,container] CPU Quota count based on quota/period: 2
[0.056s][trace][os,container] OSContainer::active_processor_count: 2
Runtime.availableProcessors: 2
[0.056s][trace][os,container] CgroupSubsystem::active_processor_count (cached): 2
OperatingSystemMXBean.getAvailableProcessors: 2
OperatingSystemMXBean.getTotalMemorySize: 32856084480
OperatingSystemMXBean.getTotalPhysicalMemorySize: 32856084480
OperatingSystemMXBean.getFreeMemorySize: 3250790400
OperatingSystemMXBean.getFreePhysicalMemorySize: 3250790400
OperatingSystemMXBean.getTotalSwapSpaceSize: 0
OperatingSystemMXBean.getFreeSwapSpaceSize: 0
OperatingSystemMXBean.getCpuLoad: -1.000000
OperatingSystemMXBean.getSystemCpuLoad: -1.000000
];
stderr: []
exitValue = 0
java.lang.RuntimeException: 'OperatingSystemMXBean\\.getSystemCpuLoad: [0-9]+\\.[0-9]+' missing from stdout/stderr
at jdk.test.lib.process.OutputAnalyzer.shouldMatch(OutputAnalyzer.java:347)
at TestCPUAwareness.testOperatingSystemMXBeanAwareness(TestCPUAwareness.java:279)
at TestCPUAwareness.main(TestCPUAwareness.java:89)
at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:77)
at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.base/java.lang.reflect.Method.invoke(Method.java:568)
at com.sun.javatest.regtest.agent.MainActionHelper$AgentVMRunnable.run(MainActionHelper.java:333)
at java.base/java.lang.Thread.run(Thread.java:842)
JavaTest Message: Test threw exception: java.lang.RuntimeException
JavaTest Message: shutting down test
result: Failed. Execution failed: `main' threw exception: java.lang.RuntimeException: 'OperatingSystemMXBean\.getSystemCpuLoad: [0-9]+\.[0-9]+' missing from stdout/stderr
test result: Failed. Execution failed: `main' threw exception: java.lang.RuntimeException: 'OperatingSystemMXBean\.getSystemCpuLoad: [0-9]+\.[0-9]+' missing from stdout/stderr
JDK: jdk-17.0.16+1
Test: containers/docker/TestCPUAwareness.java
OS: Linux x64
Logs :
Checking OperatingSystemMXBean
Metrics instance: non-null
Metrics.getMemoryAndSwapLimit() == -1
Metrics.getMemoryLimit() == -1
Metrics.getMemoryAndSwapUsage() == 29208576
Metrics.getMemoryUsage() == 29470720
[0.053s][trace][os,container] total physical memory: 32856084480
[0.053s][trace][os,container] Path to /memory.max is /sys/fs/cgroup/memory.max
[0.053s][trace][os,container] Raw value for memory limit is: max
[0.053s][trace][os,container] Memory Limit is: Unlimited
[0.053s][debug][os,container] container memory limit unlimited: -1, using host value 32856084480
[0.056s][trace][os,container] Path to /cpu.max is /sys/fs/cgroup/cpu.max
[0.056s][trace][os,container] Raw value for CPU quota is: 200000
[0.056s][trace][os,container] CPU Quota is: 200000
[0.056s][trace][os,container] Path to /cpu.max is /sys/fs/cgroup/cpu.max
[0.056s][trace][os,container] CPU Period is: 100000
[0.056s][trace][os,container] CPU Quota count based on quota/period: 2
[0.056s][trace][os,container] OSContainer::active_processor_count: 2
Runtime.availableProcessors: 2
[0.056s][trace][os,container] CgroupSubsystem::active_processor_count (cached): 2
OperatingSystemMXBean.getAvailableProcessors: 2
OperatingSystemMXBean.getTotalMemorySize: 32856084480
OperatingSystemMXBean.getTotalPhysicalMemorySize: 32856084480
OperatingSystemMXBean.getFreeMemorySize: 3250790400
OperatingSystemMXBean.getFreePhysicalMemorySize: 3250790400
OperatingSystemMXBean.getTotalSwapSpaceSize: 0
OperatingSystemMXBean.getFreeSwapSpaceSize: 0
OperatingSystemMXBean.getCpuLoad: -1.000000
OperatingSystemMXBean.getSystemCpuLoad: -1.000000
];
stderr: []
exitValue = 0
java.lang.RuntimeException: 'OperatingSystemMXBean\\.getSystemCpuLoad: [0-9]+\\.[0-9]+' missing from stdout/stderr
at jdk.test.lib.process.OutputAnalyzer.shouldMatch(OutputAnalyzer.java:347)
at TestCPUAwareness.testOperatingSystemMXBeanAwareness(TestCPUAwareness.java:279)
at TestCPUAwareness.main(TestCPUAwareness.java:89)
at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:77)
at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.base/java.lang.reflect.Method.invoke(Method.java:568)
at com.sun.javatest.regtest.agent.MainActionHelper$AgentVMRunnable.run(MainActionHelper.java:333)
at java.base/java.lang.Thread.run(Thread.java:842)
JavaTest Message: Test threw exception: java.lang.RuntimeException
JavaTest Message: shutting down test
result: Failed. Execution failed: `main' threw exception: java.lang.RuntimeException: 'OperatingSystemMXBean\.getSystemCpuLoad: [0-9]+\.[0-9]+' missing from stdout/stderr
test result: Failed. Execution failed: `main' threw exception: java.lang.RuntimeException: 'OperatingSystemMXBean\.getSystemCpuLoad: [0-9]+\.[0-9]+' missing from stdout/stderr