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


#1

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,


(Magnus Bäck) #2

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 http://blogs.technet.com/b/markrussinovich/archive/2009/09/29/3283844.aspx.


#3

Thanks.

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


(Magnus Bäck) #4

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.


#5

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


(system) #6