I downloaded elasticsearch-5.2.2. Im on Windows 8.
I open terminal and go to the bin-folder. When Im there I run:
./elasticsearch
I then got this message:
Error occurred during initialization of VM
Could not reserve enough space for 2097152KB object heap
According to resources I found, I need to make changes inside
elasticsearch.in.bat
I found for example this:
https://discuss.elastic.co/t/error-occurred-during-initialization-of-vm-
could-not-reserve-enough-space-for-1048576kb-object-heap-elasticsearch/33999
However, I could not find the line to change in that file.
So I go to config/jvm.options. hee I can change this lines:
-Xms2g
-Xmx2g
No matter what I write there (for example -Xms1g and -Xmx1g) this will make the terminal print this error when I try to run the application:
Error: cannot find or load the main class org.elasticsearch.bootstrap.Elasticsearch
So Im stuck. What can I do?
NB: My computer has 8 GM RAM. I don't know why 2G reserved should be an issue.