LowMemoryTest2.java#id1 intermittent fails OOME: Metaspace

XMLWordPrintable

    • Type: Bug
    • Resolution: Unresolved
    • Priority: P4
    • None
    • Affects Version/s: 27
    • Component/s: core-svc
    • Environment:

      Test java/lang/management/MemoryMXBean/LowMemoryTest2.java#id1 intermittent fails, the test log show below:

      Force GC
      isAnyUsageAboveThreshold is true for Metaspace
          Memory Pool name: Metaspace
          Type: Non-heap memory
          Memory Usage: init = 0(0K) used = 16634240(16244K) committed = 16777216(16384K) max = 16777216(16384K)
          Threshold: 13421772
          ThresholdCount: 0
          CollectionThresholdCount: -1
          Manager = [Metaspace Manager]
      Force GC
      STDERR:
      java.lang.OutOfMemoryError: Metaspace
      at java.base/java.lang.ClassLoader.defineClass1(Native Method)
      at java.base/java.lang.ClassLoader.defineClass(ClassLoader.java:974)
      at java.base/java.lang.ClassLoader.defineClass(ClassLoader.java:838)
      at LowMemoryTest2$BoundlessLoaderThread.loadNext(LowMemoryTest2.java:157)
      at LowMemoryTest2$BoundlessLoaderThread.run(LowMemoryTest2.java:171)
      at java.base/java.lang.Thread.runWith(Thread.java:1540)
      at java.base/java.lang.Thread.run(Thread.java:1527)

            Assignee:
            Sendao Yan
            Reporter:
            Sendao Yan
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated: