# Constant high CPU usage

**URL:** <https://discuss.elastic.co/t/constant-high-cpu-usage/201785>\
**Category:** Elasticsearch\
**Tags:** elastic-stack-security\
**Created:** [October 1, 2019, 11:19am UTC](https://discuss.elastic.co/t/constant-high-cpu-usage/201785 "2019-10-01T11:19:17Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![Ismael\_Attoumani](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/ismael_attoumani/32/55188_2.png) [@Ismael\_Attoumani](https://discuss.elastic.co/u/Ismael_Attoumani)\
**Post date:** [October 1, 2019, 11:19am UTC](https://discuss.elastic.co/t/constant-high-cpu-usage/201785/1 "2019-10-01T11:19:17Z")

</div>

Hello,

I'm using elasticsearch (7.3.0) on a single debian 9 (strech) instance (6 cpu / 32gb RAM). I'm seeing a constant CPU usage at 100% even if I stop all indexing and there are only around 50 http connections.

```auto
"http" : {
        "current_open" : 83,
        "total_opened" : 285
      }

```

When looking at thread pool usage, I see that the thread http\_server\_worker seems to be using most of it.  
`59.4% (296.7ms out of 500ms) cpu usage by thread 'elasticsearch[elk-panel-7][http_server_worker][T#4]`  
Here is the full thread pool output [https://pastebin.com/dS5r8ZPt](https://pastebin.com/dS5r8ZPt) .

Does anyone have any idea where the issue might lie ? I don't really know where to look from here. Thank you.

---

<div class="post-metadata">

**Author:** ![ikakavas](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/ikakavas/32/34430_2.png) [@ikakavas](https://discuss.elastic.co/u/ikakavas)\
**Post date:** [October 2, 2019, 9:31am UTC](https://discuss.elastic.co/t/constant-high-cpu-usage/201785/2 "2019-10-02T09:31:26Z")

</div>

Can you share the [role definitions](https://www.elastic.co/guide/en/elasticsearch/reference/7.3/security-api-get-role.html) you have created ?

---

<div class="post-metadata">

**Author:** ![Ismael\_Attoumani](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/ismael_attoumani/32/55188_2.png) [@Ismael\_Attoumani](https://discuss.elastic.co/u/Ismael_Attoumani)\
**Post date:** [October 2, 2019, 12:26pm UTC](https://discuss.elastic.co/t/constant-high-cpu-usage/201785/3 "2019-10-02T12:26:18Z")

</div>

Here are the role definitions [https://pastebin.com/D5ZjDrby](https://pastebin.com/D5ZjDrby) . Could the CPU usage come from there ?

---

<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:** [October 30, 2019, 12:26pm UTC](https://discuss.elastic.co/t/constant-high-cpu-usage/201785/4 "2019-10-30T12:26:25Z")

</div>

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