Avoid "Too many open files" when running ES on Windows OS

Hello,

By default any Windows OS has a limit of Maximum open files per session set to 16384 (run from a command prompt : net config server)

I know that when running ES on Linux you can have in certain case an issue where the system logs "Too many open files".

To fix this the command ulimit is available.

I wanted to know if there is a way to change this value on Windows server because I didn't find any information regarding this.

Many thanks for your help.

Regards,

By default any Windows OS has a limit of Maximum open files per session set to 16384 (run from a command prompt : net config server)

AFAIK this doesn't apply to local files. See Archived MSDN and TechNet Blogs | Microsoft Learn.

1 Like

Thanks.

Sounds to me like a big limitation of using ES on Windows OS...

If there is a 16k limit on open files it would indeed be a limitation, but as I said I don't think that's true. That said, there could be limits in runtime libraries so the behavior could be JVM-dependent.

have the same kind of limitation in Linux but it is easier to extend the limit using ulimit command: