Unable to start Elasticsearch-5.6.4

(Venkat Venkat) #1

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

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

Please help me out.

(David Pilato) #2

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:


Please edit your post.

(Venkat Venkat) #3

I have edited, please check and help me out.


(David Pilato) #4

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.

(Venkat Venkat) #5

Thanks for your help.

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

Thanks once again.

(system) #6

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