Integrated: 8291060: OPEN_MAX is no longer the max limit on macOS >= 10.6 for RLIMIT_NOFILE
Gerard Ziemski
gziemski at openjdk.org
Mon Aug 1 16:10:10 UTC 2022
On Tue, 26 Jul 2022 21:54:11 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)
This pull request has now been integrated.
Changeset: 1df77ec1
Author: Gerard Ziemski <gziemski at openjdk.org>
URL: https://git.openjdk.org/jdk/commit/1df77ec1375fd3260c683ac77e5f17676fbff944
Stats: 19 lines in 1 file changed: 11 ins; 8 del; 0 mod
8291060: OPEN_MAX is no longer the max limit on macOS >= 10.6 for RLIMIT_NOFILE
Reviewed-by: dholmes, dcubed
-------------
PR: https://git.openjdk.org/jdk/pull/9650
More information about the hotspot-runtime-dev
mailing list