when i try to open the bat file of elastic search in command prompt it showing a following errors
Error occurred during initialization of VM
Could not reserve enough space for object heap
Could not create the Java virtual machine.
Please Can anyone help me in sorting out this problem clearly because i am new to this environment ??
It seems like you need the latest version of the
jdk
.Check it out here from the requirement matrix. Scroll down to Elasticsearch 5.1.x within the
Product and JVM
section where it says that you got to have Oracle JVM 1.8u40+.EDIT:
What if you run your jvm as such, by increasing your
heapsize
:or what if you set it from the the
Environment Variables
:Go to
Start
>Control Panel
>System
>Advanced system settings
>advanced(tab)
>Environment Variables
→System Variables
→New
and then the following values:This SO could be helpful!