elasticsearch/elasticsearch-servicewrapper — Issue #9: Document that set.default.ES_MIN_MEM / ES_MAX_MEM must be megabytes
Author: jamshid
Created: 2011-11-02 00:11:54+00:00
State: open

Please include a reminder in the service/elasticsearch.conf that ES_MIN_MEM and ES_MAX_MEM *must* be specified in megabytes. This was unexpected, since the standard java command-line options allow gigabytes (eg, "-Xmx8g -Xms8g").

It was hard to identify the problem, couldn't find any errors logged until I started the service with the "console" option, which output:

...
wrapper | JVM exited while loading the application.
jvm 1 | Error occurred during initialization of VM
jvm 1 | Incompatible minimum and maximum heap sizes specified

Suggested comment in elasticsearch.conf:
============================
set.default.ES_HOME=
# This may only be specified in megabytes ("1g" causes failure to start)
set.default.ES_MIN_MEM=512
set.default.ES_MAX_MEM=512
=============================