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

add more thread-related system settings info to hs_error file on Linux

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: P3
    • Resolution: Fixed
    • Affects Version/s: 11
    • Fix Version/s: 11
    • Component/s: hotspot
    • Labels:
      None
    • Subcomponent:
    • Resolved In Build:
      b18
    • CPU:
      generic
    • OS:
      linux

      Backports

        Description

        In linux os::print_os_info, print info about a number of system parameters influencing thread creation on Linux.

        We noticed the influence of these parameters when looking into an application creating over 10.000 threads on Linux at the same time. We got an OOM: unable to create new native thread which was caused by a failing pthread_create (error EAGAIN). The machine had plenty of memory, so we looked into various kernel params and in the end noticed that /proc/sys/kernel/pid_max was too low.

        The other added parameters "threads-max" and "max_map_count" are also known to be related to problems when running with high thread numbers, so I add them too.

        Example output added to the section 'system' of the hs_err file is:

        /proc/sys/kernel/threads-max (system-wide limit on the number of threads):
        256909

        /proc/sys/vm/max_map_count (maximum number of memory map areas a process may have):
        2147483647

        /proc/sys/kernel/pid_max (system-wide limit on number of process identifiers):
        81920

          Attachments

            Issue Links

              Activity

                People

                Assignee:
                mbaesken Matthias Baesken
                Reporter:
                mbaesken Matthias Baesken
                Votes:
                0 Vote for this issue
                Watchers:
                2 Start watching this issue

                  Dates

                  Created:
                  Updated:
                  Resolved: