# Logstash with long GC

**URL:** <https://discuss.elastic.co/t/logstash-with-long-gc/42159>\
**Category:** Logstash\
**Created:** [February 18, 2016, 4:49pm UTC](https://discuss.elastic.co/t/logstash-with-long-gc/42159 "2016-02-18T16:49:43Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![Jeferson\_Martins](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/jeferson_martins/32/5849_2.png) [@Jeferson\_Martins](https://discuss.elastic.co/u/Jeferson_Martins)\
**Post date:** [February 18, 2016, 4:49pm UTC](https://discuss.elastic.co/t/logstash-with-long-gc/42159/1 "2016-02-18T16:49:43Z")

</div>

Hi,

I still using Logstash 1.4.2 and in the last week begin a Long GC problem.

I dont have any filters in this logstash(s) and I use only to ship logs to redis.

There's some thing can create this problem in Logstash? maybe large log files?

---

<div class="post-metadata">

**Author:** ![magnusbaeck](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/magnusbaeck/32/44943_2.png) [@magnusbaeck](https://discuss.elastic.co/u/magnusbaeck)\
**Post date:** [February 22, 2016, 7:06pm UTC](https://discuss.elastic.co/t/logstash-with-long-gc/42159/2 "2016-02-22T19:06:26Z")

</div>

How big is the JVM heap? What's the heap utilization? Do you use any tcp inputs? IIRC 1.4.2 (which is really old) had a memory leak in the tcp input (also affecting other inputs based on that plugin).

---

<div class="post-metadata">

**Author:** ![Jeferson\_Martins](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/jeferson_martins/32/5849_2.png) [@Jeferson\_Martins](https://discuss.elastic.co/u/Jeferson_Martins)\
**Post date:** [March 7, 2016, 5:00pm UTC](https://discuss.elastic.co/t/logstash-with-long-gc/42159/3 "2016-03-07T17:00:54Z")

</div>

I use the default Xmx Option. In Logstash 1.4 is 500Mbs and in 2.1.1 is 1024Mbs...

I don't use TCP input 🙂

---

<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 6, 2017, 5:08am UTC](https://discuss.elastic.co/t/logstash-with-long-gc/42159/4 "2017-07-06T05:08:10Z")

</div>


