# The resident memory of the filebeat keep increasing if hitting the "harvester\_limit"

**URL:** <https://discuss.elastic.co/t/the-resident-memory-of-the-filebeat-keep-increasing-if-hitting-the-harvester-limit/281473>\
**Category:** Beats\
**Tags:** filebeat\
**Created:** [August 15, 2021, 7:19am UTC](https://discuss.elastic.co/t/the-resident-memory-of-the-filebeat-keep-increasing-if-hitting-the-harvester-limit/281473 "2021-08-15T07:19:40Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![VinothNarasimhan](https://avatars.discourse-cdn.com/v4/letter/v/a4c791/32.png) [@VinothNarasimhan](https://discuss.elastic.co/u/VinothNarasimhan)\
**Post date:** [August 15, 2021, 7:19am UTC](https://discuss.elastic.co/t/the-resident-memory-of-the-filebeat-keep-increasing-if-hitting-the-harvester-limit/281473/1 "2021-08-15T07:19:40Z")

</div>

Hi,

We used the filebeat to ship the logs to logstash. We used the filebeat version 7.3.1. We do set the

```auto
harvester_limit: 30
close_timeout: 15
close_inactive: 5m

```

for the input. It works fine for a while . At certain times whenever the harvester\_limit configured is hitting the limit , its keeps increasing the resident memory until the harvester well in the threshold or until we restarted it.

 ![Screenshot 2021-08-15 at 12.34.54 PM](https://us1.discourse-cdn.com/elastic/original/3X/5/5/55f033840af2b5a602da4bab50288a0960163ebc.png)

I checked the 2 memory peak all happens at the times when the filebeat started to hitting the error.

```auto
Aug 11 15:27:30 filebeat[126759]: 2021-08-11T15:27:30.154Z#011ERROR#011log/input.go:519#011Harvester could not be started on existing file: 4.txt, Err: harvester limit reached

```

Is this issue is already addressed and fixed in new releases ?

---

<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 12, 2021, 9:20am UTC](https://discuss.elastic.co/t/the-resident-memory-of-the-filebeat-keep-increasing-if-hitting-the-harvester-limit/281473/2 "2021-09-12T09:20:41Z")

</div>

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