limit number of GC worker threads for smaller heaps

XMLWordPrintable

    • Type: Enhancement
    • Resolution: Duplicate
    • Priority: P3
    • 10
    • Affects Version/s: 9
    • Component/s: 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.

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

              Created:
              Updated:
              Resolved: