# Management thread taking too much cpu

**URL:** <https://discuss.elastic.co/t/management-thread-taking-too-much-cpu/244935>\
**Category:** Elasticsearch\
**Created:** [August 13, 2020, 6:37pm UTC](https://discuss.elastic.co/t/management-thread-taking-too-much-cpu/244935 "2020-08-13T18:37:51Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![Geeks\_Insights](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/geeks_insights/32/73847_2.png) [@Geeks\_Insights](https://discuss.elastic.co/u/Geeks_Insights)\
**Post date:** [August 13, 2020, 6:37pm UTC](https://discuss.elastic.co/t/management-thread-taking-too-much-cpu/244935/1 "2020-08-13T18:37:51Z")

</div>

Hi we are observing too much cpu on cluster suddenly and the hot threads shows below only on management thread pool.

1. hotthreads  
99.8% (499ms out of 500ms) cpu usage by thread 'elasticsearch[node1][management][T#2]'

2. threadpool stats  
node\_name name active queue rejected  
elstst04 management 4 0 0  
elstst02 management 3 0 0  
elstst01 management 1 0 0  
elstst03 management 5 1 0  
elstst05 management 5 5 0

3. Elasticsearch version : 6.3

4. Java 1.8

5. 5 Node cluster with 4 CPU and 64gb Memory and 1.5TB of indexes across cluster

6. Old CMS gc collection, timeout seen on node/mon\_stats, stopped the monitoring still same.

7. No pending tasks

8. Tasks are mostly on this only  
"indices:admin/seq\_no/global\_checkpoint\_sync",  
"cluster:monitor/nodes/stats[n]",

Cluster is mostly idle no bulk loads happening but we still see 100% cpu on all data nodes.

Please let us know what all need to be verified

---

<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:** [August 13, 2020, 8:16pm UTC](https://discuss.elastic.co/t/management-thread-taking-too-much-cpu/244935/2 "2020-08-13T20:16:51Z")

</div>

> [@Geeks\_Insights](#):
>
> - Elasticsearch version : 6.3

This version was released over two years ago and is long past the [end of its supported life](https://www.elastic.co/support/eol) There's definitely been many performance improvements and bug fixes in the meantime.

Can you share the full hot threads output?

---

<div class="post-metadata">

**Author:** ![Geeks\_Insights](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/geeks_insights/32/73847_2.png) [@Geeks\_Insights](https://discuss.elastic.co/u/Geeks_Insights)\
**Post date:** [August 14, 2020, 2:22am UTC](https://discuss.elastic.co/t/management-thread-taking-too-much-cpu/244935/3 "2020-08-14T02:22:51Z")

</div>

Hi David ,

Thank you for looking into it.

Now the management threads gone and the CPU usage came down. Yesterday for 12 hours almost it was like, even after reboot it was same. There's a bulk load happened on the cluster.

Why and how this management threads used and how it causing spike if you can help me out, will check in next time and get more details.

Thanks

---

<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:** [September 11, 2020, 2:22am UTC](https://discuss.elastic.co/t/management-thread-taking-too-much-cpu/244935/4 "2020-09-11T02:22:53Z")

</div>

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