# Very low cpu usage in logstash server

**URL:** https://discuss.elastic.co/t/very-low-cpu-usage-in-logstash-server/172240
**Category:** Logstash
**Created:** [March 14, 2019, 3:21am UTC](https://discuss.elastic.co/t/very-low-cpu-usage-in-logstash-server/172240 "2019-03-14T03:21:12Z")
**Posts on this page:** 4
**Page:** 1

<div class="post-metadata">

### Author: ![xiaochuan\_lin](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/xiaochuan_lin/32/47844_2.png) [@xiaochuan\_lin](https://discuss.elastic.co/u/xiaochuan_lin)
#### Post date: [March 14, 2019, 3:21am UTC](https://discuss.elastic.co/t/very-low-cpu-usage-in-logstash-server/172240/1 "2019-03-14T03:21:12Z")

</div>

Hi,  
My logstash server has 8 CPUs and 8g Men, and 4 pipeline-workers(  
4 pipeline-workers is the best performance after testing), but no matter how i test it, the CPU usage has been 20-30%.  
The logstash input data comes from kafka, and kafka has 8 partitions in a topic，so my logstash has 8 threads to retrieve input data。  
The logstash version is 6.4.3.  
The logstash input config is:  
input {  
kafka {  
bootstrap\_servers =\> "192.168.23.1:9092,192.168.23.2:9092,192.168.23.6:9092"  
topics =\> "nginx"  
group\_id =\> "nginx-group"  
codec =\> "json"  
consumer\_threads =\> 8  
decorate\_events =\> true  
}  
}

At first, The logstash input data comes from filebeat, and the cpu uasge of logstash has been 70%,even more then 80%.

I don't understand why this is happening. please help me, thinks

---

<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: [March 14, 2019, 6:05am UTC](https://discuss.elastic.co/t/very-low-cpu-usage-in-logstash-server/172240/2 "2019-03-14T06:05:39Z")

</div>

Logstash is only able to process data as fast as the slowest downstream system can accept it. Where are you sending data? Have you verified there is no bottleneck downstream? What does your full config look like?

---

<div class="post-metadata">

### Author: ![xiaochuan\_lin](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/xiaochuan_lin/32/47844_2.png) [@xiaochuan\_lin](https://discuss.elastic.co/u/xiaochuan_lin)
#### Post date: [March 15, 2019, 1:12am UTC](https://discuss.elastic.co/t/very-low-cpu-usage-in-logstash-server/172240/3 "2019-03-15T01:12:52Z")

</div>

I have found the problem, the CPU is restricted on the server, thank you Christian\_Dahlqvist

---

<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: [April 12, 2019, 1:12am UTC](https://discuss.elastic.co/t/very-low-cpu-usage-in-logstash-server/172240/4 "2019-04-12T01:12:53Z")

</div>

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