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

Adjust the number of compiler threads for 32-bit platforms

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: P3
    • Resolution: Fixed
    • Affects Version/s: 9
    • Fix Version/s: 9
    • Component/s: hotspot
    • Labels:
      None
    • Subcomponent:
    • Resolved In Build:
      b112

      Description

      If the VM is executed on a machine with a large number of cores, it will create a large number of compiler threads. For example, on a 24-core machine, the VM will create 12 compiler threads (8 C2 compiler threads + 4 C1 compiler threads).

      On 32-bit platforms the virtual memory available to processes is limited to 2-3GB. If 32-bit VM is executed on a such large platform, the high number of compiler threads can contribute substantially to memory exhaustion on the system: In extreme cases one C2 compiler threads can use ~1GB of physical memory (see JDK-8129847 for more details).

      The current issue is supposed to host discussion about setting the number of compiler threads in a better way on 32-bit platforms. One option could be to set the number of compiler threads to 2 (1 C2 compiler thread + 1 C1 compiler thread) on these platforms.

        Attachments

          Activity

            People

            • Assignee:
              zmajo Zoltan Majo (Inactive)
              Reporter:
              zmajo Zoltan Majo (Inactive)
            • Votes:
              0 Vote for this issue
              Watchers:
              4 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: