ElasticSearch: Difference between revisions

72 bytes added ,  01:30, 26 November 2023
No edit summary
Line 34: Line 34:
=== Memory ===
=== Memory ===


[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 2GB and see what happens
 
'''Notes:'''
* Keep getting OOM, so changing to 2GB - jonny, 23-11-25
 


<code>/etc/elasticsearch/jvm.options.d/heap.options</code>
<code>/etc/elasticsearch/jvm.options.d/heap.options</code>
<pre>
<pre>
-Xms3g
-Xms2g
-Xmx3g
-Xmx2g
</pre>
</pre>