Workspace stops working to many connections? on Raspberry Pi

Just to clarify the sudo systemctl thing...

Raspberry Pi uses systemd to start processes automatically, and to restart them if they crash.
To turn this feature on you run sudo systemctl enable nodered after installing.
Now if Node-red crashes or you kill the process, systemd will restart it.

But you should be able to stop it with sudo systemctl stop nodered or indeed node-red-stop and start it with sudo systemctl start nodered or node-red-start

Since you have run sudo systemctl disable nodered, it will not automatically start up next time you reboot, at some point you will need to run sudo systemctl enable nodered again

Are you using any graphs in your dashboard and if so how much data are you sending to the dashboard?

So I am back and my CPU is again 120%

top - 17:24:43 up  8:05,  3 users,  load average: 1.75, 1.50, 1.56
Tasks:   1 total,   1 running,   0 sleeping,   0 stopped,   0 zombie
%Cpu(s): 30.3 us,  0.4 sy,  0.0 ni, 69.2 id,  0.0 wa,  0.0 hi,  0.1 si,  0.0 st 
MiB Mem :   3792.0 total,   1585.9 free,   1071.5 used,   1232.7 buff/cache     
MiB Swap:    200.0 total,    200.0 free,      0.0 used.   2720.5 avail Mem 

    PID USER      PR  NI    VIRT    RES    SHR S  %CPU  %MEM     TIME+ COMMAND                      
   2570 karel     20   0 9774.2m 639884  48768 R 122.9  16.5 297:44.21 node-red  '

But this time I have only one flow Enabled and I see log.

28 Nov 17:30:06 - [metric] {"level":99,"nodeid":"a34f52cfe83745e8","event":"node.ui-gauge.done","msgid":"911f2f2ff1ff6936","timestamp":1732811406529}
28 Nov 17:30:06 - [metric] {"level":99,"nodeid":"8fb71b684b61423f","event":"node.ui_gauge.receive","msgid":"911f2f2ff1ff6936","timestamp":1732811406529}
28 Nov 17:30:06 - [metric] {"level":99,"nodeid":"2db8c12847adb5f1","event":"node.ui_template.receive","msgid":"911f2f2ff1ff6936","timestamp":1732811406529}
28 Nov 17:30:06 - [metric] {"level":99,"nodeid":"a70c0adce67e641d","event":"node.ui-template.receive","msgid":"911f2f2ff1ff6936","timestamp":1732811406530}
28 Nov 17:30:06 - [metric] {"level":99,"nodeid":"a70c0adce67e641d","event":"node.ui-template.done","msgid":"911f2f2ff1ff6936","timestamp":1732811406530}
28 Nov 17:30:06 - [metric] {"level":99,"nodeid":"432de5cbbc386a6e","event":"node.ui-template.receive","msgid":"911f2f2ff1ff6936","timestamp":1732811406530}
28 Nov 17:30:06 - [metric] {"level":99,"nodeid":"432de5cbbc386a6e","event":"node.ui-template.done","msgid":"911f2f2ff1ff6936","timestamp":1732811406530}
28 Nov 17:30:06 - [metric] {"level":99,"nodeid":"f1595216d85f7139","event":"node.function.receive","msgid":"becad0d3fb2ab40d","timestamp":1732811406530}
28 Nov 17:30:06 - [metric] {"level":99,"nodeid":"f1595216d85f7139","event":"node.function.send","msgid":"becad0d3fb2ab40d","timestamp":1732811406530}
28 Nov 17:30:06 - [metric] {"level":99,"nodeid":"f1595216d85f7139","event":"node.function.done","msgid":"becad0d3fb2ab40d","timestamp":1732811406530}
28 Nov 17:30:06 - [metric] {"level":99,"nodeid":"f1595216d85f7139","event":"node.function.duration","msgid":"becad0d3fb2ab40d","value":0.56,"timestamp":1732811406530}
28 Nov 17:30:06 - [metric] {"level":99,"nodeid":"6ba1757c84891549","event":"node.function.receive","msgid":"becad0d3fb2ab40d","timestamp":1732811406531}
28 Nov 17:30:06 - [metric] {"level":99,"nodeid":"6ba1757c84891549","event":"node.function.send","msgid":"becad0d3fb2ab40d","timestamp":1732811406531}
28 Nov 17:30:06 - [metric] {"level":99,"nodeid":"6ba1757c84891549","event":"node.function.done","msgid":"becad0d3fb2ab40d","timestamp":1732811406535}
28 Nov 17:30:06 - [metric] {"level":99,"nodeid":"6ba1757c84891549","event":"node.function.duration","msgid":"becad0d3fb2ab40d","value":5.01,"timestamp":1732811406536}
28 Nov 17:30:06 - [metric] {"level":99,"nodeid":"d019e663c183b251","event":"node.function.receive","msgid":"becad0d3fb2ab40d","timestamp":1732811406536}
28 Nov 17:30:06 - [metric] {"level":99,"nodeid":"d019e663c183b251","event":"node.function.send","msgid":"becad0d3fb2ab40d","timestamp":1732811406537}
28 Nov 17:30:06 - [metric] {"level":99,"nodeid":"d019e663c183b251","event":"node.function.done","msgid":"becad0d3fb2ab40d","timestamp":1732811406537}
28 Nov 17:30:06 - [metric] {"level":99,"nodeid":"d019e663c183b251","event":"node.function.duration","msgid":"becad0d3fb2ab40d","value":1.23,"timestamp":1732811406537}
28 Nov 17:30:06 - [metric] {"level":99,"nodeid":"637535bc7817ce06","event":"node.mysql.send","msgid":"becad0d3fb2ab40d","timestamp":1732811406538}
28 Nov 17:30:06 - [metric] {"level":99,"nodeid":"637535bc7817ce06","event":"node.mysql.done","msgid":"becad0d3fb2ab40d","timestamp":1732811406538}
28 Nov 17:30:06 - [metric] {"level":99,"nodeid":"fe5aeed1a2226ee5","event":"node.mysql.send","msgid":"becad0d3fb2ab40d","timestamp":1732811406538}
28 Nov 17:30:06 - [metric] {"level":99,"nodeid":"fe5aeed1a2226ee5","event":"node.mysql.done","msgid":"becad0d3fb2ab40d","timestamp":1732811406539}
28 Nov 17:30:06 - [metric] {"level":99,"nodeid":"4ba34fc57b46812a","event":"node.ui-template.receive","msgid":"becad0d3fb2ab40d","timestamp":1732811406539}
28 Nov 17:30:06 - [metric] {"level":99,"nodeid":"4ba34fc57b46812a","event":"node.ui-template.done","msgid":"becad0d3fb2ab40d","timestamp":1732811406539}
28 Nov 17:30:06 - [metric] {"level":99,"nodeid":"81e0df58b4b70dde","event":"node.ui-template.receive","msgid":"becad0d3fb2ab40d","timestamp":1732811406539}
28 Nov 17:30:06 - [metric] {"level":99,"nodeid":"81e0df58b4b70dde","event":"node.ui-template.done","msgid":"becad0d3fb2ab40d","timestamp":1732811406539}
28 Nov 17:30:06 - [metric] {"level":99,"nodeid":"ee30f0dbcaaa728c","event":"node.ui_template.receive","msgid":"becad0d3fb2ab40d","timestamp":1732811406540}
28 Nov 17:30:06 - [metric] {"level":99,"nodeid":"2fce28aa3ba49d3d","event":"node.ui-chart.receive","msgid":"becad0d3fb2ab40d","timestamp":1732811406540}
28 Nov 17:30:14 - [metric] {"level":99,"nodeid":"2fce28aa3ba49d3d","event":"node.ui-chart.done","msgid":"becad0d3fb2ab40d","timestamp":1732811414948}
28 Nov 17:30:14 - [metric] {"level":99,"nodeid":"d2326228f8e09a32","event":"node.ui-chart.receive","msgid":"becad0d3fb2ab40d","timestamp":1732811414949}
28 Nov 17:30:23 - [metric] {"level":99,"nodeid":"d2326228f8e09a32","event":"node.ui-chart.done","msgid":"becad0d3fb2ab40d","timestamp":1732811423269}
28 Nov 17:30:23 - [metric] {"level":99,"nodeid":"a350b70bb004ecbb","event":"node.ui-chart.receive","msgid":"becad0d3fb2ab40d","timestamp":1732811423270}

I donth have any web browser connected to this dashboard. So shy is server still. writing
node.ui-chart.receive

I am using dashboard and dashboard 2. So now is solution take down all nodes in this flow and go one by one. But still. I don't understand wha is it doing anythings with Grafs when no window is asking for that...

You have some sort of loop hitting those nodes.

No it's not a loop, you need to look over a longer period and find which nodes are repeating.

ok I will try

Well yes I am sending electricity price and consumption by 1 hour for today a today + 1.
and then a hourly consumption,
and then dayli and monthly consumption.
This is time 3 because I have 3 flats in my house.

I found out that if I take all Dashboard 2 Grafs out. Everything is working fine.
If I am sending only data to original Dashboard Than I don't have any problems.

I will try to determine which graf in Dashboard 2 is problem. But it just one graf will be problem that means that Dashboard 2 is not usable.

Do you think that Dashboard 2 is still in development, that there can be some memory or process problems?

You are still sending data to the chart even if you are not displaying it. Otherwise, when you open the dashboard in the browser, it would not have any old data.

Add debug nodes to the inputs to the charts and check you are only updating at the rate you expect.

Also run the log, in real time, through grep "node.ui-chart" to check how often you are sending data
You can do that using
journalctl -f -u nodered | grep "node.ui-chart"
You might need to use sudo with that.