# Logstash 2.0.0 an GC tunning

**URL:** <https://discuss.elastic.co/t/logstash-2-0-0-an-gc-tunning/35166>\
**Category:** Logstash\
**Created:** [November 20, 2015, 4:17pm UTC](https://discuss.elastic.co/t/logstash-2-0-0-an-gc-tunning/35166 "2015-11-20T16:17:31Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![jsosic](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/jsosic/32/5945_2.png) [@jsosic](https://discuss.elastic.co/u/jsosic)\
**Post date:** [November 20, 2015, 4:17pm UTC](https://discuss.elastic.co/t/logstash-2-0-0-an-gc-tunning/35166/1 "2015-11-20T16:17:32Z")

</div>

Hi guys,

I'm seeing a bunch of these log entries in GC log, which are logged almost ~5-6 of them every second.

```
: 34426K->585K(38080K), 0.0017447 secs] 83465K->49625K(122752K), 0.0018111 secs] [Times: user=0.02 sys=0.00, real=0.00 secs] 
49.901: Total time for which application threads were stopped: 0.0021257 seconds, Stopping threads took: 0.0000511 seconds
50.034: [GC (Allocation Failure) 50.034: [ParNew
Desired survivor size 2162688 bytes, new threshold 6 (max 6)
- age 1: 476440 bytes, 476440 total
- age 2: 157112 bytes, 633552 total
- age 3: 21240 bytes, 654792 total
- age 4: 520 bytes, 655312 total
- age 5: 1464 bytes, 656776 total
```

Is this ok, or should I modify some of my memory settings?

---

<div class="post-metadata">

**Author:** ![warkolm](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/warkolm/32/39224_2.png) [@warkolm](https://discuss.elastic.co/u/warkolm)\
**Post date:** [November 21, 2015, 5:52am UTC](https://discuss.elastic.co/t/logstash-2-0-0-an-gc-tunning/35166/2 "2015-11-21T05:52:08Z")

</div>

That's fine, you want smaller, fast GCs rather than infrequent and longer ones.

---

<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:21am UTC](https://discuss.elastic.co/t/logstash-2-0-0-an-gc-tunning/35166/3 "2017-07-06T05:21:55Z")

</div>

Closed on July 6, 2017, 5:21am UTC


