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

jtreg test error in test/hotspot/jtreg/containers/docker/TestMemoryAwareness.java

XMLWordPrintable

    • b03
    • unknown
    • linux

        I noticed issues on one of our Linux test machines with jtreg test test/hotspot/jtreg/containers/docker/TestMemoryAwareness.java
        After JDK-8231111: Cgroups v2: Rework Metrics in java.base so as to recognize unified hierarchy .
        we see errors on one of our Linux test machines in jtreg test 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:
        > WARNING: Your kernel does not support swap limit capabilities or the cgroup is not mounted. Memory limited without swap.
        >

        Maybe a check for the warning message “Your kernel does not support swap limit capabilities” should be added to the test.

              sgehwolf Severin Gehwolf
              mbaesken Matthias Baesken
              Votes:
              0 Vote for this issue
              Watchers:
              8 Start watching this issue

                Created:
                Updated:
                Resolved: