Uploaded image for project: 'JDK'
  1. JDK
  2. JDK-8299424

containers/docker/TestMemoryWithCgroupV1.java fails on SLES12 ppc64le when testing Memory and Swap Limit

XMLWordPrintable

    • b04
    • ppc
    • linux

        On the old SLES12 machine we do not have memory.memsw.limit_in_bytes :
        ls -alL /sys/fs/cgroup/memory/memory.memsw.limit_in_bytes
        ls: cannot access /sys/fs/cgroup/memory/memory.memsw.limit_in_bytes: No such file or directory

        This leads to

        [0.163s][trace][os,container] Memory and Swap Limit is: 18446744073709551614
        memory_and_swap_limit_in_bytes: not supported

        And the check in containers/docker/TestMemoryWithCgroupV1.java fails :

        java.lang.RuntimeException: 'Memory and Swap Limit is: 157286400' missing from stdout/stderr
        at jdk.test.lib.process.OutputAnalyzer.shouldContain(OutputAnalyzer.java:221)
        at TestMemoryWithCgroupV1.testMemoryLimitWithSwappiness(TestMemoryWithCgroupV1.java:88)
        at TestMemoryWithCgroupV1.main(TestMemoryWithCgroupV1.java:61)
        at java.base/jdk.internal.reflect.DirectMethodHandleAccessor.invoke(DirectMethodHandleAccessor.java:104)
        at java.base/java.lang.reflect.Method.invoke(Method.java:578)
        at com.sun.javatest.regtest.agent.MainActionHelper$AgentVMRunnable.run(MainActionHelper.java:312)
        at java.base/java.lang.Thread.run(Thread.java:1623)

              mbaesken Matthias Baesken
              mbaesken Matthias Baesken
              Votes:
              0 Vote for this issue
              Watchers:
              5 Start watching this issue

                Created:
                Updated:
                Resolved: