I have installed elasticsearch @ debian6 by this tutorial. I have set up my system max open files directives so i have these values:
# su # cat /proc/sys/fs/file-max 70000 # ulimit -Hn 64000 # ulimit -Sn 32000
When i check elasticsearch max_file_descriptors by:
curl -XGET 'http://localhost:9200/_nodes?process=true&pretty=true'
i'll get 1024.
When i restart it by root user, it has "max_file_descriptors" : 64000 now.
Whats wrong with that init.d autostart? When i check htop, elastic autostarted by init.d with that 1024 descriptors is runnig under root user too.
I have set max files open by 2 confs:
cat /etc/sysctl.conf ... fs.file-max = 70000 cat /etc/security/limits.conf ... * soft nofile 32000 * hard nofile 64000 root soft nofile 32000 root hard nofile 64000