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

limit number of GC worker threads for smaller heaps

XMLWordPrintable

    • Icon: Enhancement Enhancement
    • Resolution: Duplicate
    • Icon: P3 P3
    • 10
    • 9
    • hotspot
    • gc
    • generic
    • generic

      The heuristics currently do not seem to take the size of the heap into account when calculating the default number of worker threads. This can often lead to a huge amount of thread overhead for small heaps. As an extreme example, on a on a 40 HW thread machine, 9-ea+144 will start up over 100 GC threads (G1) OOTB for a 16m heap.

      This has caused performance issues in environments where many small processes are run in parallel.

      This ER is to document the issue and prompt a discussion on whether we can improve the ergonomics for smaller heaps.

            Unassigned Unassigned
            dbuck David Buck
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: