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

[TESTBUG] CgroupMetricsTester.testMemoryUsage() test is unreliable

    XMLWordPrintable

Details

    • Bug
    • Resolution: Duplicate
    • P4
    • None
    • None
    • hotspot
    • The test needs cgroup memory controller to handle the test process.

    Description

      In the family of cgroup tests there is test "TestCgroupMetrics.java" which fails with some probability here and then.

      The failures are more frequent on older JVMs (e.g. 8) where G1 is not a default GC. But the failure can be easily reproduced with G1 as well.

      *How to reproduce*
      Run TestCgroupMetrics.java, but modify it a bit. In method testAll() of class MetricsTestser, run "tester.testMemoryUsage();" in a loop:
      ```
      - tester.testMemoryUsage();
      + for (int i = 0; i < 1000; i++)
      + {
      + tester.testMemoryUsage();
      + }
      ```

      Attachments

        Issue Links

          Activity

            People

              Unassigned Unassigned
              ibereziuk Ivan Bereziuk
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: