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

GClocker induced GCs can starve threads requiring memory leading to OOME

    XMLWordPrintable

Details

    • gc

    Description

      Threads may be starved from receiving memory by the GClocker. This typically leads to OOME in the affected threads. This works as follows:

      1. Thread A tries to allocate memory as normal, and tries to start a GC; the GCLocker is active and so the thread gets stalled waiting for the GC
      2. GCLocker induced GC executes and frees some memory
      3. Thread A does not get any of that memory, but other threads also waiting for memory.
      4. Goto 1 until the gclocker retry count has been reached

      Attachments

        Issue Links

          Activity

            People

              iwalulya Ivan Walulya
              tschatzl Thomas Schatzl
              Votes:
              1 Vote for this issue
              Watchers:
              19 Start watching this issue

              Dates

                Created:
                Updated: