| 1234567891011121314151617181920212223242526272829303132 | [[file-descriptors]]=== File Descriptors[NOTE]This is only relevant for Linux and macOS and can be safely ignored if runningElasticsearch on Windows. On Windows that JVM uses anhttps://msdn.microsoft.com/en-us/library/windows/desktop/aa363858(v=vs.85).aspx[API]limited only by available resources.Elasticsearch uses a lot of file descriptors or file handles.  Running out offile descriptors can be disastrous and will most probably lead to data loss.Make sure to increase the limit on the number of open files descriptors forthe user running Elasticsearch to 65,536 or higher.For the `.zip` and `.tar.gz` packages, set <<ulimit,`ulimit -n 65536`>> asroot before starting Elasticsearch,   or set `nofile` to `65536` in<<limits.conf,`/etc/security/limits.conf`>>.On macOS, you must also pass the JVM option `-XX:-MaxFDLimit`to Elasticsearch in order for it to make use of the higher file descriptor limit.RPM and Debian packages already default the maximum number of filedescriptors to 65536 and do not require further configuration.You can check the `max_file_descriptors` configured for each nodeusing the <<cluster-nodes-stats>> API, with:[source,js]--------------------------------------------------GET _nodes/stats/process?filter_path=**.max_file_descriptors--------------------------------------------------// CONSOLE
 |