# Logstash outofmemory error

**URL:** <https://discuss.elastic.co/t/logstash-outofmemory-error/118470>\
**Category:** Logstash\
**Created:** [February 5, 2018, 2:13pm UTC](https://discuss.elastic.co/t/logstash-outofmemory-error/118470 "2018-02-05T14:13:03Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![tyb1222](https://avatars.discourse-cdn.com/v4/letter/t/a8b319/32.png) [@tyb1222](https://discuss.elastic.co/u/tyb1222)\
**Post date:** [February 5, 2018, 2:13pm UTC](https://discuss.elastic.co/t/logstash-outofmemory-error/118470/1 "2018-02-05T14:13:03Z")

</div>

I used kafka as my input plugin like this :  
`input{  
kafka{  
bootstrap\_servers=\>"192.168.23.125:9092,192.168.23.126:9092,192.168.23.127:9092"  
topics=\>["Apache\_log"]  
group\_id=\>"test-consumer-group"  
consumer\_threads =\> 3  
auto\_offset\_reset=\>"earliest"   
max\_poll\_records =\> "10"  
session\_timeout\_ms =\> "60000"  
request\_timeout\_ms =\> "63000"  
}

}  
output  
{  
file {  
path =\>"/data/logs/apache.log"  
}  
}``  
It is default for other settings. Logstash started well,but after a while ,the error OutOfMemory occured . after increased JVM heap size to 8G and restarted lostash , it was longer than before . Why does logstash read data from kafka ,and nothing flush to file?

---

<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:** [March 5, 2018, 2:13pm UTC](https://discuss.elastic.co/t/logstash-outofmemory-error/118470/2 "2018-03-05T14:13:21Z")

</div>

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