diff --git a/src/rpm/systemd/elasticsearch.service b/src/rpm/systemd/elasticsearch.service index c68c5054391..740639ef74e 100644 --- a/src/rpm/systemd/elasticsearch.service +++ b/src/rpm/systemd/elasticsearch.service @@ -9,6 +9,10 @@ User=elasticsearch Group=elasticsearch PIDFile=/var/run/elasticsearch/elasticsearch.pid ExecStart=/usr/share/elasticsearch/bin/elasticsearch -p /var/run/elasticsearch/elasticsearch.pid -Des.default.config=$CONF_FILE -Des.default.path.home=$ES_HOME -Des.default.path.logs=$LOG_DIR -Des.default.path.data=$DATA_DIR -Des.default.path.work=$WORK_DIR -Des.default.path.conf=$CONF_DIR +# See MAX_OPEN_FILES in sysconfig +LimitNOFILE=65535 +# See MAX_LOCKED_MEMORY in sysconfig, use "infinity" when MAX_LOCKED_MEMORY=unlimited and using bootstrap.mlockall: true +#LimitMEMLOCK=infinity [Install] WantedBy=multi-user.target