# How to pass JVM parameters to Logstash?

**URL:** <https://discuss.elastic.co/t/how-to-pass-jvm-parameters-to-logstash/77406>\
**Category:** Logstash\
**Created:** [March 4, 2017, 11:59pm UTC](https://discuss.elastic.co/t/how-to-pass-jvm-parameters-to-logstash/77406 "2017-03-04T23:59:28Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Ranieri\_Mazili\_de\_Ol](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/ranieri_mazili_de_ol/32/15815_2.png) [@Ranieri\_Mazili\_de\_Ol](https://discuss.elastic.co/u/Ranieri_Mazili_de_Ol)\
**Post date:** [March 4, 2017, 11:59pm UTC](https://discuss.elastic.co/t/how-to-pass-jvm-parameters-to-logstash/77406/1 "2017-03-04T23:59:28Z")

</div>

Hello,

I need to pass additional JVM parameters to logstash when starting. I've tried modify the jvm.options that's inside conf directory but it haven't any effect.  
I could make it work adding the parameters changing setup.bat file but I think there's a better way to do it.

Anybody can tell me if jvm.options file is to do what I want and how to use it correctly? Do I have to pass any parameter to use it when starting logstash?

I really appreciate any help.  
Thanks

---

<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:** [March 5, 2017, 3:57am UTC](https://discuss.elastic.co/t/how-to-pass-jvm-parameters-to-logstash/77406/2 "2017-03-05T03:57:36Z")

</div>

On Windows, the best way is probably to edit the `setup.bat` file. The `jvm.options` file is (so far) only read by Unix systems. If you know how to hack the `setup.bat` to read from `jvm.options`, we'd love a pull request to help us get there.

---

<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:** [April 2, 2017, 3:57am UTC](https://discuss.elastic.co/t/how-to-pass-jvm-parameters-to-logstash/77406/3 "2017-04-02T03:57:43Z")

</div>

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