I am running in to an issue with Elasticsearch on Ubuntu with mlockall set
to true. If I have mlockall enabled and I go to restart elasticsearch I
get the following error:
Error occurred during initialization of VM
Could not reserve enough space for object heap
But if I do a stop and start its fine. I am using the chef cookbook to
deploy ES and the default setting of 60% of system memory set to the ES
java Heap (System has 15GB of ram). Something I am missing on the
configuration to allow me to use mlockall and still restart ES? Should I
just use 50% of the system memory?
Error occurred during initialization of VM
Could not reserve enough space for object heap
But if I do a stop and start its fine. I am using the chef cookbook to
deploy ES and the default setting of 60% of system memory set to the ES
java Heap (System has 15GB of ram). Something I am missing on the
configuration to allow me to use mlockall and still restart ES? Should I
just use 50% of the system memory?
The restart script in the Chef cookbook [1] does just that, stop => start.
What kind of system is this on? Is it a virtual machine, Vagrant?
Apache, Apache Lucene, Apache Hadoop, Hadoop, HDFS and the yellow elephant
logo are trademarks of the
Apache Software Foundation
in the United States and/or other countries.