How much memory to allocate to heap?

Lets say I have a big machine (~65GB of ram). And I have elasticsearch
running on a VERY active applcation (1000s of updates/writes per second,
100s of reads per second). I'm looking at running this as a service as
described here:
http://www.elasticsearch.org/guide/reference/setup/installation.html. It
looks like by default, elasticsearch.conf sets heap size to be 1024. Also,
there are additional parameters in the elasticsearch.conf file for
initmemory and maxmemory. What is the recommendation for these as well?

Thanks for your help.

--
You received this message because you are subscribed to the Google Groups "elasticsearch" group.
To unsubscribe from this group and stop receiving emails from it, send an email to elasticsearch+unsubscribe@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.

The recommended setting is about 50% of the machine memory, so if you have ~65gb, I would recommend giving ES 30gb of memory for heap (just set ES_HEAP_SIZE env var, which sets both min and max to the same value, which is recommended). The reason for the 30gb memory setting is that the JVM can (under 31gb approximately) compress 64bit pointers.

Don't worry about the rest of the memory, it is happily used by the operating for the file system cache, which means disk access speeds up. In order to even improve that further, you can set the index.store.type to mmapfs which will use memory mapped files for the index files.

On Feb 2, 2013, at 10:25 PM, ryano ryanogle79@gmail.com wrote:

Lets say I have a big machine (~65GB of ram). And I have elasticsearch running on a VERY active applcation (1000s of updates/writes per second, 100s of reads per second). I'm looking at running this as a service as described here: Elasticsearch Platform — Find real-time answers at scale | Elastic. It looks like by default, elasticsearch.conf sets heap size to be 1024. Also, there are additional parameters in the elasticsearch.conf file for initmemory and maxmemory. What is the recommendation for these as well?

Thanks for your help.

--
You received this message because you are subscribed to the Google Groups "elasticsearch" group.
To unsubscribe from this group and stop receiving emails from it, send an email to elasticsearch+unsubscribe@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.

--
You received this message because you are subscribed to the Google Groups "elasticsearch" group.
To unsubscribe from this group and stop receiving emails from it, send an email to elasticsearch+unsubscribe@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.

Perfect! Thanks much!

On Saturday, February 2, 2013 2:04:59 PM UTC-8, kimchy wrote:

The recommended setting is about 50% of the machine memory, so if you have
~65gb, I would recommend giving ES 30gb of memory for heap (just set
ES_HEAP_SIZE env var, which sets both min and max to the same value, which
is recommended). The reason for the 30gb memory setting is that the JVM can
(under 31gb approximately) compress 64bit pointers.

Don't worry about the rest of the memory, it is happily used by the
operating for the file system cache, which means disk access speeds up. In
order to even improve that further, you can set the index.store.type to
mmapfs which will use memory mapped files for the index files.

On Feb 2, 2013, at 10:25 PM, ryano <ryano...@gmail.com <javascript:>>
wrote:

Lets say I have a big machine (~65GB of ram). And I have elasticsearch
running on a VERY active applcation (1000s of updates/writes per second,
100s of reads per second). I'm looking at running this as a service as
described here:
Elasticsearch Platform — Find real-time answers at scale | Elastic. It
looks like by default, elasticsearch.conf sets heap size to be 1024. Also,
there are additional parameters in the elasticsearch.conf file for
initmemory and maxmemory. What is the recommendation for these as well?

Thanks for your help.

--
You received this message because you are subscribed to the Google Groups
"elasticsearch" group.
To unsubscribe from this group and stop receiving emails from it, send an
email to elasticsearc...@googlegroups.com <javascript:>.
For more options, visit https://groups.google.com/groups/opt_out.

--
You received this message because you are subscribed to the Google Groups "elasticsearch" group.
To unsubscribe from this group and stop receiving emails from it, send an email to elasticsearch+unsubscribe@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.