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

Adjust the number of compiler threads for 32-bit platforms

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: P3 P3
    • 9
    • 9
    • hotspot
    • None
    • b112

      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.

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

              Created:
              Updated:
              Resolved: