# Unexplained high CPU

**URL:** <https://forum.inductiveautomation.com/t/unexplained-high-cpu/50050>\
**Category:** Ignition\
**Tags:** ignition80\
**Created:** [August 18, 2021, 2:32pm UTC](https://forum.inductiveautomation.com/t/unexplained-high-cpu/50050 "2021-08-18T14:32:07Z")\
**Posts on this page:** 7\
**Page:** 1

<div class="post-metadata">

**Author:** ![wpmccormick](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/wpmccormick/32/13940_2.png) [@wpmccormick](https://forum.inductiveautomation.com/u/wpmccormick)\
**Post date:** [August 18, 2021, 2:32pm UTC](https://forum.inductiveautomation.com/t/unexplained-high-cpu/50050/1 "2021-08-18T14:32:07Z")

</div>

I’m running a fresh 8.1.7 install (in trial mode) on a debian VM with 2GB ram. With no project yet built. I only have MQTT Engine/Distributor and MySQL modules running and connected. Three times in the last week, my IT group reported to me that the VM CPU was pegged.

 ![Ignition VM High CPU](https://us1.discourse-cdn.com/inductiveautomation/original/3X/0/c/0c72a415b5a959e1b7a717da478cd5a0f2ed3410.png)

It was reported to me on the 3rd time, and when looking into it, it was definitely the Ignition service loading down the VM. The CPU was at 100% and all memory was used. I looked through the running threads and didn’t see anything that jumped out at me, so I just restarted the service and things went back to **normal**.

Looking back over log files for something to pin it on, I find the following:

1. The MQTT Engine was (or became) disconnect from the Distributor
2. ClockDiftDetector warning in the log files
3. BasicExecutionEngine error - Task gateway performance monitor threw an uncaught exception.

 ![image](https://us1.discourse-cdn.com/inductiveautomation/original/3X/6/b/6b84c5156cfffa5c164cbd45753ec9f92fb3690c.png)

I’m not sure any of that log info is relevant, but I’d like to get ahead of this before I start any development. It’s obviously a little disconcerting that this would happen before any project was built and/or running.

Is this a known issue in some way? If it happens again, what should I look for?

---

<div class="post-metadata">

**Author:** ![bkarabinchak.psi](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/bkarabinchak.psi/32/83567_2.png) [@bkarabinchak.psi](https://forum.inductiveautomation.com/u/bkarabinchak.psi)\
**Post date:** [August 18, 2021, 2:36pm UTC](https://forum.inductiveautomation.com/t/unexplained-high-cpu/50050/2 "2021-08-18T14:36:37Z")

</div>

I can’t tell you what wrong at least from this picture, but uploading your `wrapper.log` file if you have it would be good so others can take a more in depth look at what is going on in your gateway.

---

<div class="post-metadata">

**Author:** ![Kevin.Herron](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/kevin.herron/32/7259_2.png) [@Kevin.Herron](https://forum.inductiveautomation.com/u/Kevin.Herron)\
**Post date:** [August 18, 2021, 2:38pm UTC](https://forum.inductiveautomation.com/t/unexplained-high-cpu/50050/3 "2021-08-18T14:38:56Z")

</div>

Logs and a thread dump if it happens again…

---

<div class="post-metadata">

**Author:** ![wpmccormick](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/wpmccormick/32/13940_2.png) [@wpmccormick](https://forum.inductiveautomation.com/u/wpmccormick)\
**Post date:** [August 18, 2021, 2:49pm UTC](https://forum.inductiveautomation.com/t/unexplained-high-cpu/50050/4 "2021-08-18T14:49:09Z")

</div>

Here’s a wrapper.log that would include entries during high CPU usage.

[wrappper.log.tgz](https://forum.inductiveautomation.com/uploads/short-url/nyTDZ6FhkvrQ9frmyDbaEtcz8d9.tgz) (302.6 KB)

How do I do a _thread dump_?

---

<div class="post-metadata">

**Author:** ![Kevin.Herron](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/kevin.herron/32/7259_2.png) [@Kevin.Herron](https://forum.inductiveautomation.com/u/Kevin.Herron)\
**Post date:** [August 18, 2021, 2:54pm UTC](https://forum.inductiveautomation.com/t/unexplained-high-cpu/50050/5 "2021-08-18T14:54:44Z")

</div>

[https://docs.inductiveautomation.com/display/DOC81/Diagnostics+-+Threads#DiagnosticsThreads-IndividualThreads](https://docs.inductiveautomation.com/display/DOC81/Diagnostics+-+Threads#DiagnosticsThreads-IndividualThreads)

---

<div class="post-metadata">

**Author:** ![Kevin.Herron](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/kevin.herron/32/7259_2.png) [@Kevin.Herron](https://forum.inductiveautomation.com/u/Kevin.Herron)\
**Post date:** [August 18, 2021, 2:56pm UTC](https://forum.inductiveautomation.com/t/unexplained-high-cpu/50050/6 "2021-08-18T14:56:20Z")

</div>

I’m guessing this is related to the MQTT modules some how, since you have nothing else going on with this gateway and the logs are full of MQTT warnings.

---

<div class="post-metadata">

**Author:** ![wpmccormick](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/wpmccormick/32/13940_2.png) [@wpmccormick](https://forum.inductiveautomation.com/u/wpmccormick)\
**Post date:** [August 18, 2021, 3:04pm UTC](https://forum.inductiveautomation.com/t/unexplained-high-cpu/50050/7 "2021-08-18T15:04:24Z")

</div>

Okay. I figured as much.

I fixed the _CirrusClient connect with retry failed due to Bad user name or password_ warning and the logs are now quiet. I’ll keep a watch on it.

Thanks!
