# Logstash is not picking up the heap memory settings from jvm.options file

**URL:** https://discuss.elastic.co/t/logstash-is-not-picking-up-the-heap-memory-settings-from-jvm-options-file/111682
**Category:** Logstash
**Created:** [December 14, 2017, 6:09am UTC](https://discuss.elastic.co/t/logstash-is-not-picking-up-the-heap-memory-settings-from-jvm-options-file/111682 "2017-12-14T06:09:10Z")
**Posts on this page:** 3
**Page:** 1

<div class="post-metadata">

### Author: ![mruthyu](https://avatars.discourse-cdn.com/v4/letter/m/bb73d2/32.png) [@mruthyu](https://discuss.elastic.co/u/mruthyu)
#### Post date: [December 14, 2017, 6:09am UTC](https://discuss.elastic.co/t/logstash-is-not-picking-up-the-heap-memory-settings-from-jvm-options-file/111682/1 "2017-12-14T06:09:11Z")

</div>

I have added -Xms2g -Xmx2g in jvm.options file and restarted logstash. But this change is not reflecting. Version: 5.4.3

---

<div class="post-metadata">

### Author: ![magnusbaeck](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/magnusbaeck/32/44943_2.png) [@magnusbaeck](https://discuss.elastic.co/u/magnusbaeck)
#### Post date: [December 18, 2017, 7:04pm UTC](https://discuss.elastic.co/t/logstash-is-not-picking-up-the-heap-memory-settings-from-jvm-options-file/111682/2 "2017-12-18T19:04:35Z")

</div>

So what does your jvm.options file look like? And exactly how is Logstash's JVM being invoked (`ps aux | grep logstash`)?

---

<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: [January 15, 2018, 7:04pm UTC](https://discuss.elastic.co/t/logstash-is-not-picking-up-the-heap-memory-settings-from-jvm-options-file/111682/3 "2018-01-15T19:04:49Z")

</div>

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