Unable to start Elasticsearch-5.6.4

I have installed 5.6.4 Zip file. While starting Elasticsearch getting below error

./bin/elasticsearch
Error: encountered environment variables that are no longer supported
Use jvm.options or ES_JAVA_OPTS to configure the JVM
ES_HEAP_SIZE=10g: set -Xms10g and -Xmx10g in jvm.options or add "-Xms10g -Xmx10g" to ES_JAVA_OPTS

I have set the Heap Size in JVM.options as 15g. Please find the below.

In JVM.options i have set the below

# Xms represents the initial size of total heap space
# Xmx represents the maximum size of total heap space
     
-Xms15g
-Xmx15g

Please help me out.

Please format your code using </> icon as explained in this guide and not the citation button. It will make your post more readable.

Or use markdown style like:

```
CODE
```

Please edit your post.

I have edited, please check and help me out.

Thanks.

Did you remove ES_HEAP_SIZE?
If so, what is the error message you are getting now?

And don't set both: jvm.options AND ES_JAVA_OPTS. It's useless and you will never know which one is used at the end.

Thanks for your help.

I have removed ES_HEAP_SIZE in the environmental variables. Now it is working.

Thanks once again.

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