No lunch is for free.
I would be nice to get the core dump for analysis, so it is not possible to
help.
So I have only general hints, where YMMV.
First, check if your Linux gives you enough resources for mmap() with
ulimit -l (for the mlockall call by JNA).
Second, please note, that you must also reserve swap for the size of your
memory space you demand with Xms (which in the end is something like a
sequence of simple malloc()'s on fragments of contiguous space). So, check
if your system offers 256G contiguous space, and if the swap area is at
least 256G (plus some GB for non-heap memory). When you start the JVM
process with Xms, Linux must be able to move other pages out of the way to
swap, if you already had pages allocated which are swappable. If you don't,
Linux let the process crash. By default, Linux reserves 25% of total RAM
for it (and this matches your 64G setting).
Third, personally I'm curious how you analyzed that only such a large heap
memory is feasible for JVM apps, like ES. Have you run other apps with such
a setting succesfully? I must admit I doubt it. For example, managing
caches in such a large heap is a nightmare, and I predict it will slow down
your ES significantly. Also, GC will get slow, compared to less aggressive
heap setting, like 8GB or 16GB.
Jörg
On Mon, Jul 29, 2013 at 7:36 AM, Mark Walkom markw@campaignmonitor.comwrote:
We're running Dell R720xds with 512G RAM, ES 0.90.0, Java 1.7.0_25 and
Ubuntu 12.04 and we're wanting to allocate ES 256G of RAM (ie 50% of
physical).
However during startup we were noticing that ES would continually core
dump. We ended up having to set;
ES_MIN_MEM=64g
ES_MAX_MEM=256g
Where before we were using;
ES_HEAP_SIZE=256g
Just to get ES to start and connect to the existing cluster.
This does appear to be a java bug occurring when trying to allocate the
complete xms. Our main concern is if there be any issues if we continue to
set "bootstrap.mlockall: true", as this setup doesn't align with the
official documentation?
Regards,
Mark Walkom
Infrastructure Engineer
Campaign Monitor
email: markw@campaignmonitor.com
web: www.campaignmonitor.com
--
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.