RFR: 8291060: OPEN_MAX is no longer the max limit on macOS >= 10.6 for RLIMIT_NOFILE [v2]

Jaikiran Pai jpai at openjdk.org
Thu Dec 22 09:07:58 UTC 2022


On Wed, 27 Jul 2022 15:53:06 GMT, Gerard Ziemski <gziemski at openjdk.org> wrote:

>> On macOS we are currently using setrlimit(RLIMIT_NOFILE, OPEN_MAX) for MaxFDLimit (it's ON by default), 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)
>
> Gerard Ziemski has updated the pull request incrementally with one additional commit since the last revision:
> 
>   implement David's feedback

Just a FYI - this change showed up an interesting issue while launching "ksh" from within Java which is now detailed at https://bugs.openjdk.org/browse/JDK-8299258

-------------

PR: https://git.openjdk.org/jdk/pull/9650


More information about the hotspot-runtime-dev mailing list