# Elasticsearch 6.2.1 installation issue - Windows

**URL:** <https://discuss.elastic.co/t/elasticsearch-6-2-1-installation-issue-windows/120493>\
**Category:** Elasticsearch\
**Created:** [February 19, 2018, 4:47pm UTC](https://discuss.elastic.co/t/elasticsearch-6-2-1-installation-issue-windows/120493 "2018-02-19T16:47:09Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![deepaks](https://avatars.discourse-cdn.com/v4/letter/d/b2d939/32.png) [@deepaks](https://discuss.elastic.co/u/deepaks)\
**Post date:** [February 19, 2018, 4:47pm UTC](https://discuss.elastic.co/t/elasticsearch-6-2-1-installation-issue-windows/120493/1 "2018-02-19T16:47:09Z")

</div>

Hi,

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](https://www.elastic.co/guide/en/elasticsearch/reference/current/_client_jvm_check.html)

Any pointers are welcome.

Thanks  
Deepak

---

<div class="post-metadata">

**Author:** ![jasontedor](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/jasontedor/32/66992_2.png) [@jasontedor](https://discuss.elastic.co/u/jasontedor)\
**Post date:** [February 19, 2018, 9:45pm UTC](https://discuss.elastic.co/t/elasticsearch-6-2-1-installation-issue-windows/120493/2 "2018-02-19T21:45:13Z")

</div>

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](https://github.com/elastic/elasticsearch/pull/28738).

---

<div class="post-metadata">

**Author:** ![deepaks](https://avatars.discourse-cdn.com/v4/letter/d/b2d939/32.png) [@deepaks](https://discuss.elastic.co/u/deepaks)\
**Post date:** [February 20, 2018, 8:32am UTC](https://discuss.elastic.co/t/elasticsearch-6-2-1-installation-issue-windows/120493/3 "2018-02-20T08:32:38Z")

</div>

Thanks for the clarification.

---

<div class="post-metadata">

**Author:** ![jasontedor](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/jasontedor/32/66992_2.png) [@jasontedor](https://discuss.elastic.co/u/jasontedor)\
**Post date:** [February 20, 2018, 2:54pm UTC](https://discuss.elastic.co/t/elasticsearch-6-2-1-installation-issue-windows/120493/4 "2018-02-20T14:54:57Z")

</div>

You're welcome.

---

<div class="post-metadata">

**Author:** ![system](https://us1.discourse-cdn.com/elastic/original/3X/1/a/1ac57faf039f6b580b3f104ef42a2a89e41014de.png) [@system](https://discuss.elastic.co/u/system)\
**Post date:** [March 20, 2018, 2:55pm UTC](https://discuss.elastic.co/t/elasticsearch-6-2-1-installation-issue-windows/120493/5 "2018-03-20T14:55:06Z")

</div>

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