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

NPG: With -XX:+UseCompressedKlassPointers OOME due to exhausted metadata space could occur when metaspace is almost empty

XMLWordPrintable

    • b40

        Test that concurrently load classes and execute methods via reflection fails due to OOME: Metadata space, but according to GC log Metaspace is almost free.
        Issue could be reproduced with 64-bit VM and -XX:+UseCompressedKlassPointers.

        Test uses MaxMetaspaceSize=256m and ClassMetaspaceSize=128. After start up, test fill metaspace with generated classes and then start multiple threads, that execute JCK tests via reflection. On OOME tests unloads part of those generated classes. However, VM continue throwing "OOME: Metadata space" when all generated classes are already unloaded and according to GC log metaspace is almost empty.

          1. gc.log
            1.58 MB
          2. jck60008.log
            36.53 MB

              coleenp Coleen Phillimore
              fzhinkin Filipp Zhinkin
              Votes:
              0 Vote for this issue
              Watchers:
              8 Start watching this issue

                Created:
                Updated:
                Resolved: