There is no connection between ES_MAX_MEM and bootstrap.mlockall. mlockall
can not make the JVM taking more memory, the memory consumption is the
same. Maybe you set mmapfs and you have seen the difference between virtual
memory and resident memory.
The recommended setting is to reserve 50% of RAM for the heap of the JVM
ES. The other 50% are for the Java process, buffers, and other OS
processes. This is a rule of thumb, it depends on how you want to use the
heap of course.
JVM memory consumption can change a lot over the lifetime of a process. You
should set ES_MIN_MEM to ES_MAX_MEM in every case. This prevents the JVM
from allocating and releasing large chunks of memory every once a while,
together with high GC activity.
The best you can do to get precise numbers is to start your ES cluster for
testing, put it under heavy load according to your workload pattern, and
measure the system metrics. Trust only the numbers you see on your system,
nothing else.
Jörg
On Tue, Mar 11, 2014 at 10:06 AM, Subhadip Bagui i.bagui@gmail.com wrote:
Hi,
Actually if I fix the ES_MAX_MEM with some value elasticsearch is starting
with max of that memory usage only. But when used *bootstrap.mlockall:
true *and start elasticsearch it's taking more memory than ES_MAX_MEM.
What I'm trying to understand if how much memory elasticsearch will occupy
for process memory pages so that I can plan for the RAM usage.
-Subhadip
--
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.
To view this discussion on the web visit
https://groups.google.com/d/msgid/elasticsearch/d3f91133-8867-4d1f-a552-dfad0ab6c642%40googlegroups.comhttps://groups.google.com/d/msgid/elasticsearch/d3f91133-8867-4d1f-a552-dfad0ab6c642%40googlegroups.com?utm_medium=email&utm_source=footer
.
For more options, visit https://groups.google.com/d/optout.
--
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.
To view this discussion on the web visit https://groups.google.com/d/msgid/elasticsearch/CAKdsXoEo7%2B-9S3de5CT%2Bx2UM_i7QGf9ZetB508VrMfO%2Bx01TNw%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.