# What's with these crazy CPU spikes?

**URL:** <https://discuss.elastic.co/t/whats-with-these-crazy-cpu-spikes/149894>\
**Category:** Elasticsearch\
**Created:** [September 25, 2018, 6:52pm UTC](https://discuss.elastic.co/t/whats-with-these-crazy-cpu-spikes/149894 "2018-09-25T18:52:32Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![sysadmin](https://avatars.discourse-cdn.com/v4/letter/s/e480ec/32.png) [@sysadmin](https://discuss.elastic.co/u/sysadmin)\
**Post date:** [September 25, 2018, 6:52pm UTC](https://discuss.elastic.co/t/whats-with-these-crazy-cpu-spikes/149894/1 "2018-09-25T18:52:32Z")

</div>

Hey, I'm relatively new to ES and am building out a cluster for some pretty heavy lifting. Throughout my whole process of building and troubleshooting this thing so far, there's been a pattern of spikes to almost 100% CPU load every 5 minutes on all of my nodes. The graph only shows it happening on some each time, but that's just the 1 minute check interval on my metrics agent not catching the short event on each node each time.

Can anyone help me identify what's causing this? Is it normal or something I should be trying to fix? I can tell you it's the Java process on the node doing it, not some other process.

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

What troubleshooting steps can I take? What info can I provide here? I did some struggling with X-Pack today but was not able to get it running (and trying is pretty disruptive). Is that the right tool?

I've been stuck at this for a couple days. Can anyone provide any input?

Thanks

---

<div class="post-metadata">

**Author:** ![jakelandis](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/jakelandis/32/36163_2.png) [@jakelandis](https://discuss.elastic.co/u/jakelandis)\
**Post date:** [September 25, 2018, 7:59pm UTC](https://discuss.elastic.co/t/whats-with-these-crazy-cpu-spikes/149894/2 "2018-09-25T19:59:41Z")

</div>

> What troubleshooting steps can I take?

[Nodes hot threads API | Elasticsearch Guide [8.11] | Elastic](https://www.elastic.co/guide/en/elasticsearch/reference/current/cluster-nodes-hot-threads.html) while the spike is happening is probably the best start. The results may be pretty hard to understand since they are Java stack traces, however the class names in them can often point you a direction to start investigating.

---

<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 23, 2018, 7:59pm UTC](https://discuss.elastic.co/t/whats-with-these-crazy-cpu-spikes/149894/3 "2018-10-23T19:59:47Z")

</div>

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