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

OPEN_MAX is no longer the max limit on macOS >= 10.6 for RLIMIT_NOFILE

    XMLWordPrintable

Details

    • Enhancement
    • Resolution: Fixed
    • P4
    • 20
    • None
    • hotspot
    • None
    • b09
    • os_x
    • Fix failed

    Description

      We are currently using setrlimit(RLIMIT_NOFILE, OPEN_MAX) for XX:+MaxFDLimit, but we can go higher than that.

      My own testing on macOS 12.3.1 reveals that we can ask for setrlimit(RLIMIT_NOFILE, RLIM_INFINITY), though in reality we will get back 32765, which is still more than OPEN_MAX (10240)

      Attachments

        Issue Links

          Activity

            People

              gziemski Gerard Ziemski
              gziemski Gerard Ziemski
              Votes:
              0 Vote for this issue
              Watchers:
              5 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: