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

GC watermark_0_1 failed due to "metaspace.gc.Fault: GC has happened too rare"

    XMLWordPrintable

    Details

    • Subcomponent:
      gc
    • Resolved In Build:
      b18
    • CPU:
      x86_64
    • OS:
      linux

      Description

      The following test failed in the JDK14 CI:

      vmTestbase/metaspace/gc/watermark_0_1/TestDescription.java

      Here's a snippet from the log file:

      %%% Working with Metaspace
      % -XX:MaxMetaspaceFreeRatio=1
      % -XX:MetaspaceSize=5m
      % -XX:MaxMetaspaceSize=25m
      % -XX:-UseCompressedOops
      % -Dtest.java.opts=-server -XX:+UnlockExperimentalVMOptions -XX:+UseZGC -XX:+CreateCoredumpOnCrash -XX:-UseCompressedOops
      % -XX:MinMetaspaceFreeRatio=0
      % Classes loaded: 2160
      % Used metaspace : 14302k
      % Committed metaspce: 15412k
      % GC has been invoked: 11 times
      ----------System.err:(16/1146)----------
      metaspace.gc.Fault: GC has happened too rare: 11 times, expected count greater than 20
      at metaspace.gc.HighWaterMarkTest.checkGCCount(HighWaterMarkTest.java:225)
      at metaspace.gc.HighWaterMarkTest.doCheck(HighWaterMarkTest.java:193)
      at metaspace.gc.MetaspaceBaseGC.run(MetaspaceBaseGC.java:97)
      at metaspace.gc.HighWaterMarkTest.main(HighWaterMarkTest.java:69)
      at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
      at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
      at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
      at java.base/java.lang.reflect.Method.invoke(Method.java:564)
      at com.sun.javatest.regtest.agent.MainWrapper$MainThread.run(MainWrapper.java:127)
      at java.base/java.lang.Thread.run(Thread.java:830)

      JavaTest Message: Test threw exception: metaspace.gc.Fault: GC has happened too rare: 11 times, expected count greater than 20
      JavaTest Message: shutting down test

      STATUS:Failed.`main' threw exception: metaspace.gc.Fault: GC has happened too rare: 11 times, expected count greater than 20
      ----------rerun:(49/7349)*----------

        Attachments

          Activity

            People

            Assignee:
            pliden Per Liden
            Reporter:
            dcubed Daniel Daugherty
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved: