# GC (Allocation Failure)

**URL:** <https://discuss.elastic.co/t/gc-allocation-failure/179744>\
**Category:** Logstash\
**Created:** [May 6, 2019, 10:36am UTC](https://discuss.elastic.co/t/gc-allocation-failure/179744 "2019-05-06T10:36:27Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![hemantkhokhar](https://avatars.discourse-cdn.com/v4/letter/h/8e7dd6/32.png) [@hemantkhokhar](https://discuss.elastic.co/u/hemantkhokhar)\
**Post date:** [May 6, 2019, 10:36am UTC](https://discuss.elastic.co/t/gc-allocation-failure/179744/1 "2019-05-06T10:36:27Z")

</div>

while i am getting below logs then kiban not showing logs ...need help.

10014.695: [GC (Allocation Failure) 1531122K-\>1258470K(4160256K), 0.0214068 secs]  
10015.756: [GC (Allocation Failure) 1531110K-\>1258425K(4160256K), 0.0214237 secs]  
10016.894: [GC (Allocation Failure) 1531065K-\>1258611K(4160256K), 0.0300174 secs]  
10017.861: [GC (Allocation Failure) 1531251K-\>1257962K(4160256K), 0.0275830 secs]  
10018.904: [GC (Allocation Failure) 1530602K-\>1258007K(4160256K), 0.0210158 secs]

---

<div class="post-metadata">

**Author:** ![Christian\_Dahlqvist](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/christian_dahlqvist/32/4617_2.png) [@Christian\_Dahlqvist](https://discuss.elastic.co/u/Christian_Dahlqvist)\
**Post date:** [May 6, 2019, 12:02pm UTC](https://discuss.elastic.co/t/gc-allocation-failure/179744/2 "2019-05-06T12:02:32Z")

</div>

If you want a response you are better off providing more deatils around version, OS and configuration.

---

<div class="post-metadata">

**Author:** ![Badger](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/badger/32/25190_2.png) [@Badger](https://discuss.elastic.co/u/Badger)\
**Post date:** [May 6, 2019, 12:50pm UTC](https://discuss.elastic.co/t/gc-allocation-failure/179744/3 "2019-05-06T12:50:45Z")

</div>

Why do you need help? What concerns you about these messages?

Your JVM is spending 3 hundreths of a second processing GC about once every 1.1 seconds. That's a very good GC efficiency. The fact that you are getting AFs when you have 2.5 GB free heap suggests you have a lot of heap fragmentation, but unless that is causing a lot of GC it is not an issue.

---

<div class="post-metadata">

**Author:** ![hemantkhokhar](https://avatars.discourse-cdn.com/v4/letter/h/8e7dd6/32.png) [@hemantkhokhar](https://discuss.elastic.co/u/hemantkhokhar)\
**Post date:** [May 7, 2019, 10:35am UTC](https://discuss.elastic.co/t/gc-allocation-failure/179744/4 "2019-05-07T10:35:14Z")

</div>

Is this the right way to give multiple input..because i am not geeting logs on kibana. due to this i have to restart logstash after some interval continuously.  
input {  
beats {  
port =\> 5044  
}  
}

input {  
cloudwatch\_logs {  
log\_group =\> ["/aws/rds/instance/trips3m-prod-master/slowquery"]  
region =\> "us-east-1"  
type=\> "rds"  
}  
}

input {  
cloudwatch\_logs {  
log\_group =\> ["/aws/rds/instance/trips3m-read-private-new/slowquery"]  
region =\> "us-east-1"  
type=\> "rds\_slave"  
}  
}

output {  
elasticsearch {  
hosts =\> ["[http://0.0.0.0:9200](http://0.0.0.0:9200)"]  
index =\> "%{[@metadata][indexname]}-%{+YYYY.MM.dd}"  
}

---

<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:** [June 4, 2019, 10:35am UTC](https://discuss.elastic.co/t/gc-allocation-failure/179744/5 "2019-06-04T10:35:18Z")

</div>

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