HI I am trying to start up ES by running Elasticsearch.bat.
I have created an options file under JVM.options.d folder setting the heap size to 2 gb as below -
-Xms2g
-Xmx2g
But When running the batch file, i get the below error.
7.13.2\Elasticsearch-7.13.2\bin>Elasticsearch.bat
Exception in thread "main" java.lang.RuntimeException: starting java failed with [1]
output:
error:
Invalid initial heap size: -Xms2g
Error: Could not create the Java Virtual Machine.
Error: A fatal exception has occurred. Program will exit.