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
java -Xmx512m -version
? If that works, you can setES_MAX_MEM
to512m
and that will probably get you further. – Val