# Best practice to increase memory for containerized logstash

**URL:** <https://discuss.elastic.co/t/best-practice-to-increase-memory-for-containerized-logstash/79007>\
**Category:** Logstash\
**Created:** [March 17, 2017, 11:09am UTC](https://discuss.elastic.co/t/best-practice-to-increase-memory-for-containerized-logstash/79007 "2017-03-17T11:09:46Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![hust](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/hust/32/16451_2.png) [@hust](https://discuss.elastic.co/u/hust)\
**Post date:** [March 17, 2017, 11:09am UTC](https://discuss.elastic.co/t/best-practice-to-increase-memory-for-containerized-logstash/79007/1 "2017-03-17T11:09:46Z")

</div>

We are running logstash within a Docker Container to monitor RabbitMQ. Due to some huge messages we have to increase the memory with which logstash is operating.

According to [https://www.elastic.co/guide/en/logstash/current/config-setting-files.html](https://www.elastic.co/guide/en/logstash/current/config-setting-files.html) we can do this via changing properties within the file jvm.options. In our situation (we provision our machines with Ansible) this has the drawback that we are delivering a lot of other properties with this file - and maybe loose some changes in this file in the future due to it doesn't get updates on increasing logstash versions.

On searching for an environment setting I found LS\_HEAP\_SIZE =\> which sounds promising. But in [https://www.elastic.co/guide/en/logstash/current/docker.html](https://www.elastic.co/guide/en/logstash/current/docker.html) it looks the "official" way seems to be the one with the config files.

So the question is: Is the environment property LS\_HEAP\_SIZE an "official" way of increasing logstash memory in this deployment scenario?

---

<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 14, 2017, 11:09am UTC](https://discuss.elastic.co/t/best-practice-to-increase-memory-for-containerized-logstash/79007/2 "2017-04-14T11:09:48Z")

</div>

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