# High CPU usage. Logstash can't work with persistent queue

**URL:** <https://discuss.elastic.co/t/high-cpu-usage-logstash-cant-work-with-persistent-queue/175674>\
**Category:** Logstash\
**Created:** [April 6, 2019, 12:14pm UTC](https://discuss.elastic.co/t/high-cpu-usage-logstash-cant-work-with-persistent-queue/175674 "2019-04-06T12:14:16Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Fedele\_Mantuano](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/fedele_mantuano/32/9225_2.png) [@Fedele\_Mantuano](https://discuss.elastic.co/u/Fedele_Mantuano)\
**Post date:** [April 6, 2019, 12:14pm UTC](https://discuss.elastic.co/t/high-cpu-usage-logstash-cant-work-with-persistent-queue/175674/1 "2019-04-06T12:14:17Z")

</div>

Logstash: 6.7.0  
CPU: 2 core  
Heap Space: 2GB

Hi community,

I have a Logstash server with a persistent queue of 4GB on disk.  
Few days ago I had an issue with the number of open files. I saw this issue in Logstash logs, so I increased LS\_OPEN\_FILES in configuration file.  
After that I restarted Logstash, it was up but blocked. The CPU was 99,99% for 3 hours, and 0 logs in Elastic. I checked the logs, but it was empty.  
So I decided to move out persistent queue and Logstash started to analyze without problem.

Do you know this issue? Do I have to fix anything in my configuration?  
And Can I retry to ingest old queue that it's on Logstash disk?

Thanks a lot

---

<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:** [May 4, 2019, 12:14pm UTC](https://discuss.elastic.co/t/high-cpu-usage-logstash-cant-work-with-persistent-queue/175674/2 "2019-05-04T12:14:20Z")

</div>

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