elastic / elasticsearch-servicewrapper

A service wrapper on top of elasticsearch
http://www.elastic.co
487 stars 182 forks source link

Document that set.default.ES_MIN_MEM / ES_MAX_MEM must be megabytes #9

Open jamshid opened 13 years ago

jamshid commented 13 years ago

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

amarthya commented 11 years ago

Was this issue resolved? What are the values that I use for Min Memory and Max MKemoery. I have seeing the Heap Dump memory errors with this service even before ES is started where elasticsearch.bat starts the elastic search fine.