100% CPU Issues - Indicating And Finding Possible Cause

There have been a few topics on here about Node-RED consuming 100% CPU, with no apparent reason why. The two main reasons for these issues are MQTT modes in a loop and dodgy code.

However, there is nothing in Node-RED itself that indicates and issue. I have had this issue many times in the last few days, and it's been difficult to pin down the cause. The only reason I know there is an issue is my alerting saying that Node-RED is using up CPU.

Just today, I was playing with some CSS code in a template node attached in the header section (dashboard 1), and that caused my spike. No reason why?!

Is there anyway (maybe added in v5) to indicate an issue and where it may be? I am not suggesting Node-RED tells me where in my code, just that a specific node is causing issues - at least that will help narrow now my search field.

Thanks

1 Like

If you have the dashboard open, you can check the inspector (right click), most likely vuetify is generating errors and it will immediately loop and hang everything, it is the very reason i don't use the dashboard, it is very hard to work with as errors tend to hang up the browser directly. Close the dashboard tab and it all becomes responsive again, but now you have to figure out where the error is, while you cannot debug.