# Filebeat Memory Usage (Linux)

**URL:** https://discuss.elastic.co/t/filebeat-memory-usage-linux/63772
**Category:** Beats
**Tags:** filebeat
**Created:** [October 24, 2016, 3:40pm UTC](https://discuss.elastic.co/t/filebeat-memory-usage-linux/63772 "2016-10-24T15:40:23Z")
**Posts on this page:** 4
**Page:** 1

<div class="post-metadata">

### Author: ![flodense](https://avatars.discourse-cdn.com/v4/letter/f/5f8ce5/32.png) [@flodense](https://discuss.elastic.co/u/flodense)
#### Post date: [October 24, 2016, 3:40pm UTC](https://discuss.elastic.co/t/filebeat-memory-usage-linux/63772/1 "2016-10-24T15:40:23Z")

</div>

I am experiencing a similar issue with filebeat-1.2.3 on centos7.

The log file that is being tracked reaches a maximum size of about 9.6MB and rotates out every couple days.

At startup, filebeat will start using 200-300MB of memory and over the course of 10-15 minutes will ramp up to as much as 900MB.

Attached you'll find my filebeat.yml as well as a memprofile from about a 10 minute period of the filebeat process running.

 ![](https://us1.discourse-cdn.com/elastic/original/2X/7/79b1c707a75c79fce2d7935caa3d66c3a6fb3b7c.png)

 ![](https://us1.discourse-cdn.com/elastic/original/2X/8/8f4f49218618085396467d257ade2afb0f0bfa57.png)

---

<div class="post-metadata">

### Author: ![tudor](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/tudor/32/3753_2.png) [@tudor](https://discuss.elastic.co/u/tudor)
#### Post date: [October 24, 2016, 4:15pm UTC](https://discuss.elastic.co/t/filebeat-memory-usage-linux/63772/2 "2016-10-24T16:15:09Z")

</div>

Can you also post the `top` line for filebeat? Something like:

```auto
top -n 1 | grep filebeat

```

I want to make sure we're talking about residential memory and not virtual memory, since virtual memory is known to be very large for Go programs, but that isn't actually a cause of concern.

---

<div class="post-metadata">

### Author: ![flodense](https://avatars.discourse-cdn.com/v4/letter/f/5f8ce5/32.png) [@flodense](https://discuss.elastic.co/u/flodense)
#### Post date: [October 24, 2016, 5:24pm UTC](https://discuss.elastic.co/t/filebeat-memory-usage-linux/63772/3 "2016-10-24T17:24:29Z")

</div>

Ahh! That's exactly right @tudor.

73340 root 20 0 806512 14484 1804 S 0.3 0.0 3:20.83 filebeat

---

<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: [November 14, 2016, 3:40pm UTC](https://discuss.elastic.co/t/filebeat-memory-usage-linux/63772/4 "2016-11-14T15:40:25Z")

</div>

This topic was automatically closed after 21 days. New replies are no longer allowed.
