Limit Elasticsearch Memory Use (Heap Size)Add the following to /etc/elasticsearch/jvm.options:-Xms2g # minimum heap size -Xmx2g # maximum heap size