# Increasing heap size - Logstash

**URL:** https://discuss.elastic.co/t/increasing-heap-size-logstash/244310
**Category:** Logstash
**Created:** [August 9, 2020, 4:13pm UTC](https://discuss.elastic.co/t/increasing-heap-size-logstash/244310 "2020-08-09T16:13:12Z")
**Posts on this page:** 2
**Page:** 1

<div class="post-metadata">

### Author: ![Natarajan](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/natarajan/32/46943_2.png) [@Natarajan](https://discuss.elastic.co/u/Natarajan)
#### Post date: [August 9, 2020, 4:13pm UTC](https://discuss.elastic.co/t/increasing-heap-size-logstash/244310/1 "2020-08-09T16:13:12Z")

</div>

I am using Logstash 7.6.2 and I set LS\_JAVA\_OPTS="-Xmx2g -Xms2g" as evirnoment variable in docker command. I am not sure it is reflected in docker container . How can we validate this once we set from command.

---

<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: [September 6, 2020, 4:13pm UTC](https://discuss.elastic.co/t/increasing-heap-size-logstash/244310/2 "2020-09-06T16:13:20Z")

</div>

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