Elastic Search Error – max file descriptors [4096] for elasticsearch process is too low, increase to at least [65535]

elastic-search-error-max-max-file-descriptors

Elastic Search Error – max file descriptors [4096] for elasticsearch process is too low, increase to at least [65535]

Solution

Temporary to the current login session
To set ulimit value on a parameter use the below command.
$ ulimit -p 65535

Persistent limits can be set for a particular user – By editing the /etc/security/limits.conf file. To set the maximum number of open files for the elasticsearch user to 65,536, add the following line to the limits.conf file:

  • https://gerardnico.com/os/linux/limits.conf
  • https://www.thegeekdiary.com/understanding-etc-security-limits-conf-file-to-set-ulimit/