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

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

      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)

        There are no Sub-Tasks for this issue.

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

              Created:
              Updated:
              Resolved: