# Perspective Workers High CPU Usage

**URL:** <https://forum.inductiveautomation.com/t/perspective-workers-high-cpu-usage/28115>\
**Category:** Ignition Early Access\
**Created:** [September 9, 2019, 7:01pm UTC](https://forum.inductiveautomation.com/t/perspective-workers-high-cpu-usage/28115 "2019-09-09T19:01:22Z")\
**Posts on this page:** 8\
**Page:** 1

<div class="post-metadata">

**Author:** ![paul.longtine](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/paul.longtine/32/10599_2.png) [@paul.longtine](https://forum.inductiveautomation.com/u/paul.longtine)\
**Post date:** [September 9, 2019, 7:01pm UTC](https://forum.inductiveautomation.com/t/perspective-workers-high-cpu-usage/28115/1 "2019-09-09T19:01:22Z")

</div>

Greetings,

My organization has an Ignition Gateway instance running version **8.0.3-rc2 (b2019072512)**.

The Java version is 11.0.3+7-LTS running on an Ubuntu Linux instance on amd64.

On average the entire Gateway runtime is eating up ~80% CPU usage. The significant offenders appear to be perspective-worker threads, as shown:

 ![Threads](https://us1.discourse-cdn.com/inductiveautomation/original/2X/7/78611c93b1c72f1079c0e8d6aea863020f8333f7.png)

 ![Execution](https://us1.discourse-cdn.com/inductiveautomation/original/2X/b/b42694aa666357430b728147e3e94521992c7383.png)

 ![Dashboard](https://us1.discourse-cdn.com/inductiveautomation/original/2X/7/753b08317a5cd4bbda5e2b7eb4f047e02c74a500.png)

Our team will attempt to disable a potential resource intensive page and investigate further.

I don’t think this should be normal behavior and figuring out what specific actions are causing this is very important.

---

<div class="post-metadata">

**Author:** ![paul-griffith](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/paul-griffith/32/37249_2.png) [@paul-griffith](https://forum.inductiveautomation.com/u/paul-griffith)\
**Post date:** [September 9, 2019, 7:05pm UTC](https://forum.inductiveautomation.com/t/perspective-workers-high-cpu-usage/28115/2 "2019-09-09T19:05:29Z")

</div>

Taking a thread dump while those worker threads are in a high CPU state would be helpful.

---

<div class="post-metadata">

**Author:** ![paul.longtine](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/paul.longtine/32/10599_2.png) [@paul.longtine](https://forum.inductiveautomation.com/u/paul.longtine)\
**Post date:** [September 9, 2019, 7:12pm UTC](https://forum.inductiveautomation.com/t/perspective-workers-high-cpu-usage/28115/3 "2019-09-09T19:12:37Z")

</div>

[dev-ignition1\_thread\_dump.txt](https://us1.discourse-cdn.com/inductiveautomation/original/2X/1/1e35d8965e55964759da62a7c4e50e4bddedcf53.txt) (101.0 KB)

Yes, that was one thing I forgot to include! This state is more or less a constant, so there is no specific window where the CPU usage spikes - it’s constantly ~80% with + 20% -10% spikes.

---

<div class="post-metadata">

**Author:** ![paul-griffith](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/paul-griffith/32/37249_2.png) [@paul-griffith](https://forum.inductiveautomation.com/u/paul-griffith)\
**Post date:** [September 9, 2019, 7:41pm UTC](https://forum.inductiveautomation.com/t/perspective-workers-high-cpu-usage/28115/4 "2019-09-09T19:41:22Z")

</div>

Hmm, one possibility might be a circular property reference. We try to prevent you from doing that with direct property bindings, but there are still some circumstances where it’s possible. If you’re able to, try isolating it down to a certain view/page configuration/etc and start troubleshooting from there.

This definitely isn’t something we would expect - there’s always going to be _some_ load on the gateway from running the Perspective backend, but it shouldn’t be nearly this heavy.

---

<div class="post-metadata">

**Author:** ![paul.longtine](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/paul.longtine/32/10599_2.png) [@paul.longtine](https://forum.inductiveautomation.com/u/paul.longtine)\
**Post date:** [September 9, 2019, 7:43pm UTC](https://forum.inductiveautomation.com/t/perspective-workers-high-cpu-usage/28115/5 "2019-09-09T19:43:18Z")

</div>

I’ll dig a little bit to see if there’s a circular property reference.

---

<div class="post-metadata">

**Author:** ![paul.longtine](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/paul.longtine/32/10599_2.png) [@paul.longtine](https://forum.inductiveautomation.com/u/paul.longtine)\
**Post date:** [September 10, 2019, 7:01pm UTC](https://forum.inductiveautomation.com/t/perspective-workers-high-cpu-usage/28115/6 "2019-09-10T19:01:06Z")

</div>

@paul-griffith Your guess was correct! Took much digging, but it was a poorly implemented checkbox that caused my issues.

Would there ever be a push for a more in-depth diagnostics page to see which bindings / transforms / change scripts are eating up processor time?

Thank you for your help!

---

<div class="post-metadata">

**Author:** ![paul-griffith](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/paul-griffith/32/37249_2.png) [@paul-griffith](https://forum.inductiveautomation.com/u/paul-griffith)\
**Post date:** [September 10, 2019, 7:43pm UTC](https://forum.inductiveautomation.com/t/perspective-workers-high-cpu-usage/28115/7 "2019-09-10T19:43:22Z")

</div>

Good to hear!  
Our first priority would probably actually be to try to _prevent_ you from doing such things in the first place - they’re obviously not intentional, just tend to happen over time. If they do happen, then they should (ideally) gracefully fail and give some kind of indication about _why_ to the designer.

Long term, yes, the general Perspective debugging experience is something we’re planning to improve.

---

<div class="post-metadata">

**Author:** ![paul-griffith](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/paul-griffith/32/37249_2.png) [@paul-griffith](https://forum.inductiveautomation.com/u/paul-griffith)\
**Post date:** [October 15, 2021, 2:24pm UTC](https://forum.inductiveautomation.com/t/perspective-workers-high-cpu-usage/28115/8 "2021-10-15T14:24:54Z")

</div>

A post was split to a new topic: [Diagnosing high CPU Perspective worker thread](https://forum.inductiveautomation.com/t/diagnosing-high-cpu-perspective-worker-thread/51989)
