Commit 6d0ac5d9 authored by Vladimir Bashkirtsev's avatar Vladimir Bashkirtsev

-Xms and -Xmx should be equal - reduced -Xmx to 128M

parent 4baad149
...@@ -70,7 +70,7 @@ jdk8: useradd elasticsearch-service ...@@ -70,7 +70,7 @@ jdk8: useradd elasticsearch-service
install -d -m755 -o elasticsearch -g elasticsearch /var/log/elasticsearch install -d -m755 -o elasticsearch -g elasticsearch /var/log/elasticsearch
sed -e 's|^-Xms.*|-Xms128m|' -i /etc/elasticsearch/jvm.options sed -e 's|^-Xms.*|-Xms128m|' -i /etc/elasticsearch/jvm.options
sed -e 's|^-Xmx.*|-Xms1g|' -i /etc/elasticsearch/jvm.options sed -e 's|^-Xmx.*|-Xms128m|' -i /etc/elasticsearch/jvm.options
@echo "d /run/elasticsearch 755 elasticsearch elasticsearch -" > /usr/lib/tmpfiles.d/elasticsearch.conf @echo "d /run/elasticsearch 755 elasticsearch elasticsearch -" > /usr/lib/tmpfiles.d/elasticsearch.conf
@echo "vm.max_map_count = 262144" >> /etc/sysctl.d/elasticsearch.conf @echo "vm.max_map_count = 262144" >> /etc/sysctl.d/elasticsearch.conf
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment