# Lower Filebeat memory usage

**URL:** <https://discuss.elastic.co/t/lower-filebeat-memory-usage/274896>\
**Category:** Beats\
**Tags:** filebeat\
**Created:** [June 3, 2021, 3:21pm UTC](https://discuss.elastic.co/t/lower-filebeat-memory-usage/274896 "2021-06-03T15:21:12Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![YvorL](https://avatars.discourse-cdn.com/v4/letter/y/9fc348/32.png) [@YvorL](https://discuss.elastic.co/u/YvorL)\
**Post date:** [June 3, 2021, 3:21pm UTC](https://discuss.elastic.co/t/lower-filebeat-memory-usage/274896/1 "2021-06-03T15:21:12Z")

</div>

Hi,

I'm trying to give Filebeat as little memory as possible. My main issue is that I have a ton of independent containers on a VM and sometimes (due to network issues) Filebeat can't forward all the logs. However, after the issue is solved all (hundreds) Filebeat instances are throwing data to memory like crazy and that brings down the VM itself. I tried to use [disk queue](https://www.elastic.co/guide/en/beats/filebeat/current/configuring-internal-queue.html#configuration-internal-queue-disk), but it didn't have **any effect** on the memory usage. I'm monitoring the memory usage with Metricbeat.

Do you have any suggestions limiting Filebeat's memory usage? Or what am I missing when I add the disk queue to the configuration?

Filebeat version: 7.11.0

Thanks!

---

<div class="post-metadata">

**Author:** ![YvorL](https://avatars.discourse-cdn.com/v4/letter/y/9fc348/32.png) [@YvorL](https://discuss.elastic.co/u/YvorL)\
**Post date:** [June 10, 2021, 11:53am UTC](https://discuss.elastic.co/t/lower-filebeat-memory-usage/274896/2 "2021-06-10T11:53:52Z")

</div>

Hearing that many crickets chirping, I think that since the function is in beta it doesn't really lower memory consumption (of course, the docs never stated that) but stores events on disk for persistency.

Is there any way to limit the maximum memory usage of a Filebeat process without changing the number of events stored in memory?

---

<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:** [July 8, 2021, 1:54pm UTC](https://discuss.elastic.co/t/lower-filebeat-memory-usage/274896/3 "2021-07-08T13:54:40Z")

</div>

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