# High Logstash CPU Usage

**URL:** https://discuss.elastic.co/t/high-logstash-cpu-usage/47533
**Category:** Logstash
**Created:** [April 15, 2016, 6:51pm UTC](https://discuss.elastic.co/t/high-logstash-cpu-usage/47533 "2016-04-15T18:51:06Z")
**Posts on this page:** 3
**Page:** 1

<div class="post-metadata">

### Author: ![Maxwell\_Flanders](https://avatars.discourse-cdn.com/v4/letter/m/eb8c5e/32.png) [@Maxwell\_Flanders](https://discuss.elastic.co/u/Maxwell_Flanders)
#### Post date: [April 15, 2016, 6:51pm UTC](https://discuss.elastic.co/t/high-logstash-cpu-usage/47533/1 "2016-04-15T18:51:06Z")

</div>

I've been running a logstash framework for a while now that had 5 instances of logstash reading from a kafka queue, processing that data, and pushing it to elasticsearch. I discovered recently that that kafka queue only had 2 partitions, and 2 machines had taken those, and that my other 3 machines had essentially been sitting idle for quite a while. I never suspected this because, they were pretty consistently running at 70-100% all of the time EVEN THOUGH they were processing no records.

Why might this possibly be??

---

<div class="post-metadata">

### Author: ![Joe\_Lawson](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/joe_lawson/32/3390_2.png) [@Joe\_Lawson](https://discuss.elastic.co/u/Joe_Lawson)
#### Post date: [April 15, 2016, 8:34pm UTC](https://discuss.elastic.co/t/high-logstash-cpu-usage/47533/2 "2016-04-15T20:34:32Z")

</div>

What versions are you running. 2.0.4 got a fix for this: [https://github.com/logstash-plugins/logstash-input-kafka/issues/49](https://github.com/logstash-plugins/logstash-input-kafka/issues/49)

---

<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:02am UTC](https://discuss.elastic.co/t/high-logstash-cpu-usage/47533/3 "2017-07-06T05:02:01Z")

</div>


