ES heap memory and OS filecaching


(Aurélien) #1

Hi,

Do we have to keep the same amount of memory available for the OS as for Elasticsearch ?

So if I have 16Go memory available on the machine, should I set JMX/JMS to 8Go and keep another 8Go free for the OS in order to allow efficient filecaching ? Or can I set JMX/JMS to something like 14Go ?


(Christian Dahlqvist) #2

Keeping heap at 50% of RAM is recommended as the file system cache is important for performance.


(Thomas Dasch) #3

Here are two docs to help you out with heap sizing: the official doc and a really thorough blog post. The second one is a really good read and will explain why you want to allocate about 50/50 between heap and OS. Happy reading!


(system) #4

This topic was automatically closed 28 days after the last reply. New replies are no longer allowed.