# Elasticsearch: "high" CPU usage every 6 minutes for one minute

**URL:** <https://discuss.elastic.co/t/elasticsearch-high-cpu-usage-every-6-minutes-for-one-minute/256235>\
**Category:** Elasticsearch\
**Created:** [November 21, 2020, 4:51pm UTC](https://discuss.elastic.co/t/elasticsearch-high-cpu-usage-every-6-minutes-for-one-minute/256235 "2020-11-21T16:51:10Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![oicfar](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/oicfar/32/72064_2.png) [@oicfar](https://discuss.elastic.co/u/oicfar)\
**Post date:** [November 21, 2020, 4:51pm UTC](https://discuss.elastic.co/t/elasticsearch-high-cpu-usage-every-6-minutes-for-one-minute/256235/1 "2020-11-21T16:51:10Z")

</div>

Hi,

I'm running ELK Stack 7.10.0 (elasticsearch, filebeat, kibana, logstash) on the same server. And since two days elasticsearch is doing something every 6 minutes for one minute. The CPU usage is not high, but it's little annoying. I can't see what is happening in the elasticsearch logs.

 ![image](https://us1.discourse-cdn.com/elastic/original/3X/7/6/76c75f5a39f446ff7c0c6d38886ba5ecfa9b519c.png)

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

I'm running it on Ubuntu 20.04.1with

```
openjdk version "11.0.9.1" 2020-11-04
OpenJDK Runtime Environment AdoptOpenJDK (build 11.0.9.1+1)
OpenJDK 64-Bit Server VM AdoptOpenJDK (build 11.0.9.1+1, mixed mode)

```

Someone any idea? The server is in idle mode. No load from other processes.

Regards,  
Rafal

---

<div class="post-metadata">

**Author:** ![DavidTurner](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/davidturner/32/22453_2.png) [@DavidTurner](https://discuss.elastic.co/u/DavidTurner)\
**Post date:** [November 21, 2020, 6:16pm UTC](https://discuss.elastic.co/t/elasticsearch-high-cpu-usage-every-6-minutes-for-one-minute/256235/2 "2020-11-21T18:16:48Z")

</div>

The [nodes hot threads API](https://www.elastic.co/guide/en/elasticsearch/reference/current/cluster-nodes-hot-threads.html) will tell you the details of what every node is busy doing. If you need help interpreting its output, feel free to share it here or in a [gist](https://gist.github.com/).

---

<div class="post-metadata">

**Author:** ![oicfar](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/oicfar/32/72064_2.png) [@oicfar](https://discuss.elastic.co/u/oicfar)\
**Post date:** [November 21, 2020, 8:03pm UTC](https://discuss.elastic.co/t/elasticsearch-high-cpu-usage-every-6-minutes-for-one-minute/256235/3 "2020-11-21T20:03:43Z")

</div>

I fixed the problem. After the upgrade to 7.10.0 I removed two days ago the filebeat-7.9.3 template. But there was an empty filebeat-7.9.3-2020-xx-xx-xxxx index. After I removed it (after my post here) the CPU usage is gone.

I don't understand what was the problem, but now it's look good.

---

<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 19, 2020, 8:03pm UTC](https://discuss.elastic.co/t/elasticsearch-high-cpu-usage-every-6-minutes-for-one-minute/256235/4 "2020-12-19T20:03:48Z")

</div>

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