Elasticsearch is giving me "Too many open files" errors on my macbook
running OSX 10.8.3 and I can not figure out how to configure Elasticsearch
to use more files.
I've found several web pages showing how to increase the open files limit
on OSX and followed those directions, but Elasticsearch doesn't see the
increased limit.
I used sysctl (edited /etc/sysctl.conf) to increase the file limits.
I used launchctl (edited /etc/launchd.conf) to increase the file limits.
When I run the "ulimit -a" command it says "open files (-n) 400000".
When I run the "kern.maxfilesperproc" command it says
"kern.maxfilesperproc: 400000".
When I run the "kern.maxfiles" command it says "kern.maxfiles: 400000".
I run the "ulimit -S -n 120000" command in the bash script I use to start
Elasticsearch.
Whatever I do, Elasticsearch always reports (using
-Des.max-open-files=true): "max_open_files [10215]"
Elasticsearch is giving me "Too many open files" errors on my macbook
running OSX 10.8.3 and I can not figure out how to configure Elasticsearch
to use more files.
I've found several web pages showing how to increase the open files limit
on OSX and followed those directions, but Elasticsearch doesn't see the
increased limit.
I used sysctl (edited /etc/sysctl.conf) to increase the file limits.
I used launchctl (edited /etc/launchd.conf) to increase the file limits.
When I run the "ulimit -a" command it says "open files (-n) 400000".
When I run the "kern.maxfilesperproc" command it says
"kern.maxfilesperproc: 400000".
When I run the "kern.maxfiles" command it says "kern.maxfiles: 400000".
I run the "ulimit -S -n 120000" command in the bash script I use to start
Elasticsearch.
Whatever I do, Elasticsearch always reports (using
-Des.max-open-files=true): "max_open_files [10215]"
I'm trying to use elasticsearch on maxosx as well. I've tried everything as well. I've performed all of the above steps, and I'm still getting a number (10209) that has absolutely nothing to do with the number I've entered (65536). Is it possible that the JNA code which determines the maximum number of open files in elasticsearch is broken on macosx?
Apache, Apache Lucene, Apache Hadoop, Hadoop, HDFS and the yellow elephant
logo are trademarks of the
Apache Software Foundation
in the United States and/or other countries.