max file descriptors for elasticsearch process is too low max file descriptors for elasticsearch process is too low elasticsearch elasticsearch

max file descriptors for elasticsearch process is too low


For those who are using docker for running elastic search then you can set ulimit through your docker run command like below.

docker run --ulimit nofile=65536:65536 -p 9200:9200 --name elastic-search docker.elastic.co/elasticsearch/elasticsearch:6.4.2

Hope this will help docker users


Try this: (got it from 2-3 different sources)

add in $ES_HOME/config/elasticsearch.yml

network.host: 0.0.0.0http.port: 9200transport.host: localhosttransport.tcp.port: 9300

If its local dev setup, also use lesser memory options if possible:

add/modify in $ES_HOME/config/jvm.options

# Xms represents the initial size of total heap space# Xmx represents the maximum size of total heap space-Xms512m-Xmx512m


Simply Update /etc/security/limits.conf content to below

elasticsearch   soft    nofile          65536elasticsearch   hard    nofile          65536elasticsearch   memlock unlimited

and remove content of /etc/security/limits.d/nproc.conf

Do not forgot to relogin into the shell in order to get the limits applied.