# Logstash 6.4.1 & 6.5.0 High CPU usage

**URL:** <https://discuss.elastic.co/t/logstash-6-4-1-6-5-0-high-cpu-usage/157744>\
**Category:** Logstash\
**Tags:** elastic-stack-monitoring\
**Created:** [November 21, 2018, 4:26pm UTC](https://discuss.elastic.co/t/logstash-6-4-1-6-5-0-high-cpu-usage/157744 "2018-11-21T16:26:15Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![YanekR](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/yanekr/32/29775_2.png) [@YanekR](https://discuss.elastic.co/u/YanekR)\
**Post date:** [November 21, 2018, 4:26pm UTC](https://discuss.elastic.co/t/logstash-6-4-1-6-5-0-high-cpu-usage/157744/1 "2018-11-21T16:26:15Z")

</div>

Hi All,

I upgraded Elastic Stack from:

- At first 6.3.0 --\> 6.4.1 (whole stack)
- Then from 6.4.1 --\> 6.4.2 (only Logstash)
- then from 6.4.2 --\> 6.5.0 (only Logstash)

After first upgrade I have notice high CPU usage change on logstash nodes comparing to version 6.3.0.  
In consequence Logstash stopped consume logs from Kafka.  
 ![29](https://us1.discourse-cdn.com/elastic/original/3X/b/0/b064357ff0c48469cee97f100fb37862cc868ee3.png)

Then decided to move to version 6.4.2 all goes back to normal (still higher comparing to 6.3.0 but in tolerance).

![2](https://us1.discourse-cdn.com/elastic/original/3X/a/e/ae18e10719734dcf41b2d5bc5db89ad393fe4202.png)

Then decided to update to new release - CPU usage goes up again!

![0](https://us1.discourse-cdn.com/elastic/original/3X/6/9/69bd5b334cb54d740bcd25619711dd973fd484dc.png)

What could be possible reason for high CPU usage? No error logs or warn logs which could point to the problem.

For comparison please see below CPU usage on node that runs 6.3.0 version:

 ![0](https://us1.discourse-cdn.com/elastic/original/3X/4/7/47f5d5471f3d12b871f3057d92fb61f15804e83b.png)

It seems to be similar problem to this one: [Logstash 6.2.2 high CPU usage](https://discuss.elastic.co/t/logstash-6-2-2-high-cpu-usage/122672)

Will appreciate your help,  
Thanks,  
Jan

---

<div class="post-metadata">

**Author:** ![YanekR](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/yanekr/32/29775_2.png) [@YanekR](https://discuss.elastic.co/u/YanekR)\
**Post date:** [November 22, 2018, 11:40am UTC](https://discuss.elastic.co/t/logstash-6-4-1-6-5-0-high-cpu-usage/157744/2 "2018-11-22T11:40:44Z")

</div>

Hi an todays update.

Logstash 6.5.0 is down, not consuming any logs from kafka & keeps 100% cpu utilization

 ![Logstash%20Stop%20Working%20](https://us1.discourse-cdn.com/elastic/original/3X/7/c/7c4e50d8764a19236d41815efdda39404d13d17c.png)

 ![31](https://us1.discourse-cdn.com/elastic/original/3X/8/9/896e5caedb6d5871afe553530f076ce018dbc8ef.png)

For comparison on boxes with logstash 6.3.0 everything looks perfect:

 ![30%20still%20Working](https://us1.discourse-cdn.com/elastic/original/3X/c/6/c693216b5dbb111840cfe9a840d4eac6cc951785.png)

From logs:

[2018-11-22T10:50:28,199][INFO][org.apache.kafka.clients.consumer.internals.AbstractCoordinator] [Consumer clientId=xyz.kafka.uat.elastic.consumer-0, groupId=logstash] Attempt to heartbeat failed since group is rebalancing

Will appreciate your help,  
Thanks,  
Jan

---

<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:** [December 20, 2018, 11:40am UTC](https://discuss.elastic.co/t/logstash-6-4-1-6-5-0-high-cpu-usage/157744/3 "2018-12-20T11:40:50Z")

</div>

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