# Periodic CPU Spikes on all nodes

**URL:** <https://discuss.elastic.co/t/periodic-cpu-spikes-on-all-nodes/133716>\
**Category:** Elasticsearch\
**Created:** [May 29, 2018, 4:17pm UTC](https://discuss.elastic.co/t/periodic-cpu-spikes-on-all-nodes/133716 "2018-05-29T16:17:32Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![smlbiobot](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/smlbiobot/32/29622_2.png) [@smlbiobot](https://discuss.elastic.co/u/smlbiobot)\
**Post date:** [May 29, 2018, 4:17pm UTC](https://discuss.elastic.co/t/periodic-cpu-spikes-on-all-nodes/133716/1 "2018-05-29T16:17:32Z")

</div>

I’ve gotten some periodic CPU spikes on servers when there are no significant load. Restarting the servers doesn’t help. I have 4 nodes with 3 set to master-capable and one data node.

When it spikes, all 4 servers run at max 100%

I’ve collected node stats for these here: [https://gist.github.com/smlbiobot/f1ddd5761d945168964c413071210ee6](https://gist.github.com/smlbiobot/f1ddd5761d945168964c413071210ee6)

Any help would be greatly appreciated!

---

<div class="post-metadata">

**Author:** ![JKhondhu](https://avatars.discourse-cdn.com/v4/letter/j/ed655f/32.png) [@JKhondhu](https://discuss.elastic.co/u/JKhondhu)\
**Post date:** [May 31, 2018, 3:29pm UTC](https://discuss.elastic.co/t/periodic-cpu-spikes-on-all-nodes/133716/2 "2018-05-31T15:29:02Z")

</div>

I know we have some threads data in the gist, I've had a quick look, I can see `"peak_count":` is above the thread count, could you share:

`_cluster/health`  
`_cat/thread_pool?v`  
`_nodes/hot_threads`

---

<div class="post-metadata">

**Author:** ![smlbiobot](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/smlbiobot/32/29622_2.png) [@smlbiobot](https://discuss.elastic.co/u/smlbiobot)\
**Post date:** [June 3, 2018, 9:48pm UTC](https://discuss.elastic.co/t/periodic-cpu-spikes-on-all-nodes/133716/3 "2018-06-03T21:48:39Z")

</div>

I will fetch those for you when I can, but I would like to add that I just saw this on the dashboard that I made for myself, when a spike occured

 ![59%20AM](https://us1.discourse-cdn.com/elastic/original/3X/0/f/0f9759d0b53cfb65c9b3c148c333558870c31944.png):

In the past I assumed that it had to do with increased number of indexing / fetching but it appears that it had to do with “refreshing”. Can you explain to me what that means?

This is an issue as the cluster serves a live site and when that occurs, the entire website will become unresponsive and then time out.

---

<div class="post-metadata">

**Author:** ![smlbiobot](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/smlbiobot/32/29622_2.png) [@smlbiobot](https://discuss.elastic.co/u/smlbiobot)\
**Post date:** [June 3, 2018, 9:55pm UTC](https://discuss.elastic.co/t/periodic-cpu-spikes-on-all-nodes/133716/4 "2018-06-03T21:55:57Z")

</div>

- `_cluster/health`: [https://gist.github.com/smlbiobot/fcc3716b0dcb8f9c92d295d7e8cd8e7b](https://gist.github.com/smlbiobot/fcc3716b0dcb8f9c92d295d7e8cd8e7b)
- `_cat/thread_pool?v`: [https://gist.github.com/smlbiobot/ee2f4088290596b1b532b9474445c671](https://gist.github.com/smlbiobot/ee2f4088290596b1b532b9474445c671)
- `_nodes/hot_threads`: [https://gist.github.com/smlbiobot/3fa6fae1678ff4f78b2a5e000f9d809c](https://gist.github.com/smlbiobot/3fa6fae1678ff4f78b2a5e000f9d809c)

---

<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:** [July 1, 2018, 9:55pm UTC](https://discuss.elastic.co/t/periodic-cpu-spikes-on-all-nodes/133716/5 "2018-07-01T21:55:59Z")

</div>

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