ES 7.13.2 - Not starting up - elasticsearch.bat error Invalid initial heap size

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.

1 Like

Don't you prefer to put it in a virtual machine?

This topic was automatically closed 28 days after the last reply. New replies are no longer allowed.