-
Notifications
You must be signed in to change notification settings - Fork 24
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Cause 100% CPU consumption when mini server is at Config 15.3 Beta 3 #85
Comments
Hey Holger, you should be right. Could you get me the error message Cheers, |
Hi Patrik,
|
Hmmm. That's strange. As typically there should be something to point in the direction where the problem occurs. Will have to install beta 3 to check for myself. |
yes, same view. I have opened up a Loxone ticket; They told me that it's hard to do a downgrade of the firmware (just for your attention). Furthermore, there will be a Beta 4 arriving today or tomorrow; Will keep you updated. |
Oh, good to know. If the problem persists I should change node-red-contrib-loxone. But of course this makes no sense for betas ;-) |
sure, will do. Searched around what |
Not that I'm aware of. |
beta 4 was released and do have unfortunately the same load issue (100% CPU allocation on node-red process). Did some investigation with node.js profiler. Would like to share the following top top ticks which were accounted: Steps to do the profiling: |
had a look at my
Only an assumption.... |
I have to look into this but my time is currently limited. |
some updates..... node.js inspection (via chrome dev tools profiler visualizer) says that process is busy all the time with running "processImmediate" (violett blocks in the screenshot of the flow bars): Drilling down into the processing tree of re-occuring tasks (_updateEvent) points to the above mentioned code chapters: which ends up at: in this calls the expensive function in
try to support as best as possible, however I have doubts if my coder skills are strong enough :-( |
As 15.3 should be releases today, could you check it again with the final release? |
now running on 15.3 (no beta any more), however same behavior :-( Some thoughts: Issue came to my attention between beta2 and beta3. In this step, they introduced MQTT client; Maybe they have changed the structure or how they operate on events/messages? My IDE advised me to use the following code instead (at
|
see this pull request. CPU load has gone (good :-) ).... However delay in events stays; 5-10 seconds after loxone switch was triggered, message appeared in node red. Not acceptable user experience :-( |
while testing, seeing some events which are not being catched anymore: i.e. RGB light circuit in light module (lichtbaustein) |
Thank you so much. Will have to look into this.... |
thx for the prework - so upgrading to 15.3 public isn't recommended at the moment, if you rely on nodered working with Loxone |
yes, at least in my humble opinion it's better to stay a moment on the older branch (especially because downgrade of miniserver is not that simple according to Loxone) .... Let's wait until Patrick can take a look into it. |
is it save to update? any news? |
Did not have time to look into it, yet. Sorry. |
just asking - thx for your time spent for the project. |
I'm on 15.3.12.13 with NR 4.0.7. No problem till now. So, the problem comes with an even newer version of Loxone config? |
module seems to be not working when running current beta (Config 15.3 Beta 3). The problem looks like:
(1) node red process consumes 100% CPU even if there are no flows activated
(2) structure file is recieved, however selector in nodes does not respect the correlation (a switch in room xyz)
To isolate the issue I gave the mini server config node an ip address which is not reachable and redeployed the flow - CPU utilization of 100% was gone away; Switching back to the working ip address, high cpu load comes back.
How to reproduce the problem:
a) take a brand new node red instance
b) install node-red-contrib-loxone
c) connect to a mini server which is running at Config 15.3 Beta 3
d) observe looping node-red process with top etc... on os level (consumes about 100% cpu)
Loxone Config 15.3 Beta 2 was ok --> I'm not sure if issue is on Loxone side. However (and from my point of view), node-red-contrib-loxone should be robust enough to not go in nested loops (causing 100% cpu utilization) when receiving suspicious Loxone responses.
The text was updated successfully, but these errors were encountered: