I'm trying to pass MAX_OPEN_FILES parameter to JVM.
Actually, I am trying to increase fd on mac os x. I made it with launchctl command but the default behavior is to set the limit value by JVM, which is 10240. Therefore, I need pass MaxFDLimit parameter jvm when Elasticsearch starting.
I tried to use shell file
export MAX_OPEN_FILES=1000000 ES_JAVA_OPTS="$ES_JAVA_OPTS -Des.path.conf=$ES_CONF_DIR" #ES_JAVA_OPTS="$ES_JAVA_OPTS -Des.path.data=$ES_DATA_DIR -Des.path.conf=$ES_CONF_DIR" export ES_JAVA_OPTS cd $ES_HOME exec $ES_HOME/bin/elasticsearch
It did not work.
Does anyone have any suggestions?