ElasticSearch: Difference between revisions

18 bytes removed ,  02:57, 27 October 2023
no edit summary
No edit summary
No edit summary
Line 21: Line 21:
[https://www.elastic.co/guide/en/elasticsearch/guide/current/heap-sizing.html the ES docs] say to allocate half your available memory to the heap. At the moment (23-10-26) we are using 2.5G/8G memory at rest. Going to try allocating 3GB and see what happens
[https://www.elastic.co/guide/en/elasticsearch/guide/current/heap-sizing.html the ES docs] say to allocate half your available memory to the heap. At the moment (23-10-26) we are using 2.5G/8G memory at rest. Going to try allocating 3GB and see what happens


<code>/lib/systemd/system/elasticsearch.service</code>
<code>/etc/elasticsearch/jvm.options.d/heap.options</code>
<pre>
<pre>
[Service]
-Xms3g
Environment=ES_HEAP_SIZE=3g
-Xmx3g
</pre>
</pre>