When I try to start Elasticsearch 2.3.2 using the command ./bin/elasticsearch
, I get the following error message:
Java HotSpot(TM) 64-Bit Server VM warning: INFO: os::commit_memory(0x0000000414cc0000, 15757213696, 0) failed; error='Cannot allocate memory' (errno=12)
#
# There is insufficient memory for the Java Runtime Environment to continue.
# Native memory allocation (mmap) failed to map 15757213696 bytes for committing reserved memory.
# An error report file with more information is saved as:
# /tmp/hs_err_pid17799.log
So I try to use the following command, but with the same result:
./bin/elasticsearch -Xmx6g -Xms6g
The following is my system stats
%Cpu(s): 0.1 us, 0.1 sy, 0.0 ni, 99.8 id, 0.0 wa, 0.0 hi, 0.0 si, 0.0 st
KiB Mem: 15400936 total, 3625164 used, 11775772 free, 319024 buffers
KiB Swap: 0 total, 0 used, 0 free. 1804888 cached Mem
So according to that, Elasticsearch should run fine, right?
What other settings should I set?