# New logstash 5.x does not support \`-server\` flag for JVM?

**URL:** <https://discuss.elastic.co/t/new-logstash-5-x-does-not-support-server-flag-for-jvm/74432>\
**Category:** Logstash\
**Created:** [February 8, 2017, 9:02pm UTC](https://discuss.elastic.co/t/new-logstash-5-x-does-not-support-server-flag-for-jvm/74432 "2017-02-08T21:02:43Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![DravenJohnson](https://avatars.discourse-cdn.com/v4/letter/d/839c29/32.png) [@DravenJohnson](https://discuss.elastic.co/u/DravenJohnson)\
**Post date:** [February 8, 2017, 9:02pm UTC](https://discuss.elastic.co/t/new-logstash-5-x-does-not-support-server-flag-for-jvm/74432/1 "2017-02-08T21:02:43Z")

</div>

We used to use `-server` flag to get better performance to logstash JVM server. Seem like this option no longer valid?

We tried to set -server flag in jvm.option or startup.option, or both. None of those setting triggered when logstash start

---

<div class="post-metadata">

**Author:** ![theuntergeek](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/theuntergeek/32/44961_2.png) [@theuntergeek](https://discuss.elastic.co/u/theuntergeek)\
**Post date:** [February 8, 2017, 9:22pm UTC](https://discuss.elastic.co/t/new-logstash-5-x-does-not-support-server-flag-for-jvm/74432/2 "2017-02-08T21:22:58Z")

</div>

When you say you tried it in the `jvm.options` file, it depends on how/where you did this.

Did you install via RPM or DEB? Edit `/etc/logstash/jvm.options`  
If you installed via tarball or zip package to somewhere else, it will be in `$LS_HOME/config/jvm.options`

It may be moot, though. When I just run `java` at the command-line, I see this:

```auto
    -server to select the "server" VM
                  The default VM is server,
                  because you are running on a server-class machine.

```

In other words, it's `-server` by default, so adding it may be superfluous, or simply not shown.

---

<div class="post-metadata">

**Author:** ![DravenJohnson](https://avatars.discourse-cdn.com/v4/letter/d/839c29/32.png) [@DravenJohnson](https://discuss.elastic.co/u/DravenJohnson)\
**Post date:** [February 8, 2017, 9:36pm UTC](https://discuss.elastic.co/t/new-logstash-5-x-does-not-support-server-flag-for-jvm/74432/3 "2017-02-08T21:36:47Z")

</div>

Yes, we do try edit /etc/logstash/jvm.options and everything else works (such as HEAP size)

even it's default, but we still feeling to add that flag `-server` to jvm.options but seem like adding it to the file won't work.

Do i need some extra action to make it works?

---

<div class="post-metadata">

**Author:** ![theuntergeek](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/theuntergeek/32/44961_2.png) [@theuntergeek](https://discuss.elastic.co/u/theuntergeek)\
**Post date:** [February 8, 2017, 9:48pm UTC](https://discuss.elastic.co/t/new-logstash-5-x-does-not-support-server-flag-for-jvm/74432/4 "2017-02-08T21:48:45Z")

</div>

Everything else read in the `jvm.options` file is added. I get the idea that it's ignored since it's the default.

---

<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 8, 2017, 9:49pm UTC](https://discuss.elastic.co/t/new-logstash-5-x-does-not-support-server-flag-for-jvm/74432/5 "2017-03-08T21:49:16Z")

</div>

Closed on March 8, 2017, 9:49pm UTC

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