# Performance hit when multiple filebeats are sending to same ES

**URL:** <https://discuss.elastic.co/t/performance-hit-when-multiple-filebeats-are-sending-to-same-es/335493>\
**Category:** Beats\
**Tags:** filebeat\
**Created:** [June 8, 2023, 3:30am UTC](https://discuss.elastic.co/t/performance-hit-when-multiple-filebeats-are-sending-to-same-es/335493 "2023-06-08T03:30:08Z")\
**Posts on this page:** 1\
**Showing post:** 2

<div class="post-metadata">

**Author:** ![hjazz6](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/hjazz6/32/79007_2.png) [@hjazz6](https://discuss.elastic.co/u/hjazz6)\
**Post date:** [June 8, 2023, 9:24am UTC](https://discuss.elastic.co/t/performance-hit-when-multiple-filebeats-are-sending-to-same-es/335493/2 "2023-06-08T09:24:03Z")

</div>

I looked at the filebeat logs, and found that periodically, for a minute, no packets were dropped. Usually, I would see

```auto
input.netflow.packets.dropped: 20000
input.netflow.packets.received: 8000

```

But there are times where there would be no dropped packets and the number of received packets would be much higher. This usually occurs when `memstats.gc_next` and `memstats.memory_alloc` are the lowest compared to a few minutes before and after.

Is my performance affected by memory? I don't quite understand the explanation of `beat.memstats.gc_next` in this [post](https://discuss.elastic.co/t/how-to-interpret-memory-stats-in-filebeat-log/191110/2), but my `memstats.memory_alloc` is always lesser than `memstats.gc_next`.

I have set the JVM heap size of my ES to 64GB, where the server has 755GB of RAM:

```auto
-Xms64g
-Xmx64g

```

Should I decrease this to 32GB?

---

_[View the full topic](https://discuss.elastic.co/t/performance-hit-when-multiple-filebeats-are-sending-to-same-es/335493)._
