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

Small Metaspace allocation requests can fail even though SmallChunks are available

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: P4
    • Resolution: Duplicate
    • Affects Version/s: 8
    • Fix Version/s: 9
    • Component/s: hotspot
    • Labels:
    • Subcomponent:
      gc

      Description

      The current Metaspace chunk allocation policy allocates into four SmallChunks before starting to allocate into MediumChunks. When the metaspace for a ClassLoader has once started to allocate into MediumChunks it will continue to allocate into MediumChunks and never consider the SmallChunks, even though the alloc requests might only need a SmallChunk.

      This might lead to unnecessary GCs and OOMEs.

        Attachments

          Issue Links

            Activity

              People

              Assignee:
              jprovino Joseph Provino (Inactive)
              Reporter:
              stefank Stefan Karlsson
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved: