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

java/lang/management/MemoryMXBean/LowMemoryTest2.sh still fails with OutOfMemoryError: Metaspace

XMLWordPrintable

      In promotion testing for JDK 9-b05, java/lang/management/MemoryMXBean/LowMemoryTest2.sh failed with the following error message:

      Exception in thread "Thread-0" java.lang.OutOfMemoryError: Metaspace
      at java.lang.ClassLoader.defineClass1(Native Method)
      at java.lang.ClassLoader.defineClass(ClassLoader.java:762)
      at java.lang.ClassLoader.defineClass(ClassLoader.java:644)
      at LowMemoryTest2$BoundlessLoaderThread.loadNext(LowMemoryTest2.java:134)
      at LowMemoryTest2$BoundlessLoaderThread.run(LowMemoryTest2.java:149)
      at java.lang.Thread.run(Thread.java:744)
      Exception in thread "main" java.lang.RuntimeException: Test failed - notification not received!
      at LowMemoryTest2.main(LowMemoryTest2.java:225)

      JDK-8031065 details the exact same failure signature, but should have been fixed in b04. From all available information, the fix for JDK-8031065 was included when running promotion testing for b05, so the problem is not that we ran with an old version of the test.

      RULE java/lang/management/MemoryMXBean/LowMemoryTest2.sh Exception java.lang.OutOfMemoryError: Metaspace

            mtobiass Mattias Tobiasson (Inactive)
            miauno Mikael Auno (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved: