That is interesting. Is it that chart that is using most of the CPU? If so, then as an experiment add a function node in front of the chart containing just
return {topic: msg.topic, payload: msg.payload}
If that makes a difference then that will be a big clue.
I will stop the D1 chart and switch to the D2 charts again, including the cleaning function.
I think we can already kind of tell the D1 chart is not increasing cpu usage in the same way.
i will do it like this though:
let msg1={};
msg1.topic = msg.topic
msg1.payload = msg.payload
That is not the same as the message you posted previously with the large arrays. But whatever, first check if it is that chart that is consuming the CPU and then add the function node I suggested.
I have put this function node in front of one single chart. The one earlier used D2.
This function:
let msg1={};
msg1.topic = msg.topic;
msg1.payload = msg.payload;
return msg1;
This way I can be 100% sure there is nothing from the original msg being forwarded.
I will report back in 1 hour with the results. Should be visible then.
[offtopic]
For information only..
About the debug msg you saw earlier. It really contains hardly any data. It was a message from the same location.
I have a status update for the CPU usage.
I have now only 1x D2 chart functional now instead of 2. So i presume the endpoint it will reach is also probably halved. ~3% instead of 6/7%
But for now, it does feel like the issue is still here.
I will wait for 1 or 2 hours more to be conclusive and report back.
I would not expect the browser being open to make a significant difference.
Are you restarting node red to reset the CPU usage or sending the chart an empty array? That is the best way, then you know it is definitely the chart.
Oke, I have let it dwell for a bit.
Using this one chart, it seems to stabilize at a lower cpu level than I anticipated. Which is good of course. See image below.
To verify, I will disable this chart, and enable the other chart with the P1 information. 1000 data point limit again, but a single topic this time.
I will again make sure that chart is being fed only a topic + payload as you have given.
I will reset both charts and wait for a couple of hours again.
The difference between the two charts, should only be the frequency of incoming data points. The new scenario has ~2,5x higher frequency.
It could be related to the dropping process of the oldest data point. But given that the cpu is slowly ramping up could also suggest it has to do with a different process.