elasticsearch install plugin: Could not reserve enough space for object heap
I am trying to install the elasticsearch plugin with the command: ./plugin install license
which I found on this tut: link
But I get the error message:
Error occurred during initialization of VM Could not reserve enough space for object heap Error: Could not create the Java Virtual Machine. Error: A fatal exception has occurred. Program will exit.
After that even if I run java -version
I get the same error! Before I run ./plugin install license
java -version
worked fine and printed:
java version "1.7.0_79" OpenJDK Runtime Environment (IcedTea 2.5.6) (7u79-2.5.6-0ubuntu1.14.04.1) OpenJDK 64-Bit Server VM (build 24.79-b02, mixed mode)
Does anybody know whats my problem here? Its a fresh install of Ubuntu 14.04.4 LTS and I installed elasticsearch 2.2.3
Installation for ElasticSearch
1) Comment entry in C:elasticsearch-5.4.0elasticsearch-5.4.0configjvm.options
#-Xms2g
#-Xmx2g
2) set ES_JAVA_OPTS as below in elasticsearch.bat
set ES_JAVA_OPTS = "-Xms512m -Xmx512m"
链接地址: http://www.djcxy.com/p/82964.html
上一篇: Java堆空间