Too many open files problem on MacOS 14.1
Andrew Haley
aph-open at littlepinkcloud.com
Wed Dec 13 09:24:57 UTC 2023
On 12/13/23 06:09, Gunnar Wagenknecht wrote:
> Greetings,
>
> I'm reaching out because of an issue with the JVM on MacOS that is hitting us a large scale. It started in MacOS 13 but got really worse in 14.1. We basically now need to use -XX:-MaxFDLimit on MacOS for everything with a classpath of more then 10k jars (monolith). That applies to the Java app itself as well as any Java based IDE (Eclipse, IntelliJ) or build tool.
>
> The reason is that the MaxFDLimit implementation on Mac is broken in the JVM. The JVM is applying a lower limit to itself. We discovered the -XX:-MaxFDLimit solution after our old workarounds of increasing the open files on MacOS stopped working.
Have a look at https://bugs.openjdk.org/browse/JDK-8291060, and the problem
discussed there.
Gerard Ziemski will read this, and I expect he'd like to comment.
--
Andrew Haley (he/him)
Java Platform Lead Engineer
Red Hat UK Ltd. <https://www.redhat.com>
https://keybase.io/andrewhaley
EAC8 43EB D3EF DB98 CC77 2FAD A5CD 6035 332F A671
More information about the hotspot-dev
mailing list