# Logstash non-heap memory

**URL:** <https://discuss.elastic.co/t/logstash-non-heap-memory/171787>\
**Category:** Logstash\
**Created:** [March 11, 2019, 2:37pm UTC](https://discuss.elastic.co/t/logstash-non-heap-memory/171787 "2019-03-11T14:37:30Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![cciaccio](https://avatars.discourse-cdn.com/v4/letter/c/ccd318/32.png) [@cciaccio](https://discuss.elastic.co/u/cciaccio)\
**Post date:** [March 11, 2019, 2:37pm UTC](https://discuss.elastic.co/t/logstash-non-heap-memory/171787/1 "2019-03-11T14:37:30Z")

</div>

I run Logstash in a docker container (using the official image).

I assigned 10GB of memory to the container.

How much of these 10GB should be heap and how much non-heap?

50%-50% like Elasticsearch? 90%-10%?

---

<div class="post-metadata">

**Author:** ![danhermann](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/danhermann/32/33024_2.png) [@danhermann](https://discuss.elastic.co/u/danhermann)\
**Post date:** [March 11, 2019, 3:08pm UTC](https://discuss.elastic.co/t/logstash-non-heap-memory/171787/2 "2019-03-11T15:08:34Z")

</div>

@cciaccio, in most circumstances, Logstash does not benefit from leaving significant RAM free for the filesystem cache as Elasticsearch does, so I would suggest starting at 90% for the heap and see how that works for your workload.

---

<div class="post-metadata">

**Author:** ![cciaccio](https://avatars.discourse-cdn.com/v4/letter/c/ccd318/32.png) [@cciaccio](https://discuss.elastic.co/u/cciaccio)\
**Post date:** [March 11, 2019, 3:12pm UTC](https://discuss.elastic.co/t/logstash-non-heap-memory/171787/3 "2019-03-11T15:12:14Z")

</div>

Thanks @danhermann

---

<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 8, 2019, 3:12pm UTC](https://discuss.elastic.co/t/logstash-non-heap-memory/171787/4 "2019-04-08T15:12:20Z")

</div>

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