Elasticsearch 6.2.1 installation issue - Windows


I am trying to install 6.2.1 in a windows 2102 server. Elasticsearch service starts successfully if i start via the command line but when i install it as a windows service its failing to start. After investigating the logs it was showing an error in the stderr file as 'Unrecognized option: -server' so i disabled this option in the jvm.options file and reinstalled the windows service again and it started working. Can someone explain if this '-server' setting is required for running this in a windows machine.

I also compared the values between 5.5.2 and 6.2.1 using the GUI property manager and i could see the '-server' option is missing in the 5.5.2 version eventhough the jvm.options file has this value enabled.

My concern is around performance by not setting this value as explained here https://www.elastic.co/guide/en/elasticsearch/reference/current/_client_jvm_check.html

Any pointers are welcome.


The flag is not required (and is not compatible with starting the service on Windows). Instead, there is a bootstrap check that ensures you are running under the server JVM (if you are bound to localhost, check your logs and if not, the service will simply fail to start if you're not using the server JVM). I did update the docs to clarify that we no longer force the server JVM which I hope helps remove some confusion: https://github.com/elastic/elasticsearch/pull/28738.

Thanks for the clarification.

You're welcome.

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