JDK-8244109 : error in test/hotspot/jtreg/containers/docker/TestMemoryAwareness.java
  • Type: Bug
  • Component: hotspot
  • Sub-Component: runtime
  • Affected Version: 15
  • Priority: P4
  • Status: Closed
  • Resolution: Duplicate
  • OS: linux
  • CPU: ppc
  • Submitted: 2020-04-29
  • Updated: 2020-06-26
  • Resolved: 2020-06-26
Related Reports
Duplicate :  
Description
On linux ppc64le (SLES 12.1) we get this error in test/hotspot/jtreg/containers/docker/TestMemoryAwareness.java:
Error:
test result: Failed. Execution failed: `main' threw exception: java.lang.RuntimeException: 'OperatingSystemMXBean.getTotalSwapSpaceSize: 0' 
missing from stdout/stderr

Test output reports:
OperatingSystemMXBean.getTotalSwapSpaceSize: 16106061824
OperatingSystemMXBean.getFreeSwapSpaceSize: 15958736896

We also see this output in the logs:
WARNING: Your kernel does not support swap limit capabilities or the cgroup is not mounted. Memory limited without swap.

looks like the issue started to appear after :
8231111: Cgroups v2: Rework Metrics in java.base so as to recognize unified hierarchy
Comments
This is a duplicate of JDK-8244500 which was since fixed.
26-06-2020