# Workspace stops working to many connections? on Raspberry Pi

**URL:** https://discourse.nodered.org/t/workspace-stops-working-to-many-connections-on-raspberry-pi/93522
**Category:** General
**Created:** [27 November 2024 15:20 UTC](https://discourse.nodered.org/t/workspace-stops-working-to-many-connections-on-raspberry-pi/93522 "2024-11-27T15:20:41Z")
**Posts on this page:** 10
**Page:** 2

<div class="post-metadata">

### Author: ![jbudd](https://avatars.discourse-cdn.com/v4/letter/j/5f8ce5/32.png) [@jbudd](https://discourse.nodered.org/u/jbudd)
#### Post date: [27 November 2024 21:54 UTC](https://discourse.nodered.org/t/workspace-stops-working-to-many-connections-on-raspberry-pi/93522/21 "2024-11-27T21:54:23Z")

</div>

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

---

<div class="post-metadata">

### Author: ![zenofmud](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/zenofmud/32/316_2.png) [@zenofmud](https://discourse.nodered.org/u/zenofmud)
#### Post date: [28 November 2024 09:40 UTC](https://discourse.nodered.org/t/workspace-stops-working-to-many-connections-on-raspberry-pi/93522/22 "2024-11-28T09:40:16Z")

</div>

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

---

<div class="post-metadata">

### Author: ![KarelSebela](https://avatars.discourse-cdn.com/v4/letter/k/35a633/32.png) [@KarelSebela](https://discourse.nodered.org/u/KarelSebela)
#### Post date: [28 November 2024 16:49 UTC](https://discourse.nodered.org/t/workspace-stops-working-to-many-connections-on-raspberry-pi/93522/23 "2024-11-28T16:49:46Z")

</div>

So I am back and my CPU is again 120%

```auto
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.

```auto
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...

---

<div class="post-metadata">

### Author: ![Colin](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/colin/32/17040_2.png) [@Colin](https://discourse.nodered.org/u/Colin)
#### Post date: [28 November 2024 17:41 UTC](https://discourse.nodered.org/t/workspace-stops-working-to-many-connections-on-raspberry-pi/93522/24 "2024-11-28T17:41:12Z")

</div>

You have some sort of loop hitting those nodes.

---

<div class="post-metadata">

### Author: ![Colin](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/colin/32/17040_2.png) [@Colin](https://discourse.nodered.org/u/Colin)
#### Post date: [28 November 2024 17:58 UTC](https://discourse.nodered.org/t/workspace-stops-working-to-many-connections-on-raspberry-pi/93522/25 "2024-11-28T17:58:08Z")

</div>

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

---

<div class="post-metadata">

### Author: ![KarelSebela](https://avatars.discourse-cdn.com/v4/letter/k/35a633/32.png) [@KarelSebela](https://discourse.nodered.org/u/KarelSebela)
#### Post date: [28 November 2024 21:35 UTC](https://discourse.nodered.org/t/workspace-stops-working-to-many-connections-on-raspberry-pi/93522/26 "2024-11-28T21:35:23Z")

</div>

> [@Colin](#):
>
> you need to look over a longer period and find which nodes are repe

ok I will try

---

<div class="post-metadata">

### Author: ![KarelSebela](https://avatars.discourse-cdn.com/v4/letter/k/35a633/32.png) [@KarelSebela](https://discourse.nodered.org/u/KarelSebela)
#### Post date: [1 December 2024 20:41 UTC](https://discourse.nodered.org/t/workspace-stops-working-to-many-connections-on-raspberry-pi/93522/27 "2024-12-01T20:41:21Z")

</div>

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.

---

<div class="post-metadata">

### Author: ![KarelSebela](https://avatars.discourse-cdn.com/v4/letter/k/35a633/32.png) [@KarelSebela](https://discourse.nodered.org/u/KarelSebela)
#### Post date: [1 December 2024 20:44 UTC](https://discourse.nodered.org/t/workspace-stops-working-to-many-connections-on-raspberry-pi/93522/28 "2024-12-01T20:44:33Z")

</div>

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?

---

<div class="post-metadata">

### Author: ![Colin](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/colin/32/17040_2.png) [@Colin](https://discourse.nodered.org/u/Colin)
#### Post date: [1 December 2024 21:45 UTC](https://discourse.nodered.org/t/workspace-stops-working-to-many-connections-on-raspberry-pi/93522/29 "2024-12-01T21:45:53Z")

</div>

> [@KarelSebela](#):
>
> I donth have any web browser connected to this dashboard. So shy is server still. writing  
> node.ui-chart.receive

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.

---

<div class="post-metadata">

### Author: ![system](https://us1.discourse-cdn.com/flex026/uploads/nodered/original/1X/d073cd938eafa2e558d7c2cd59003b3ef4963033.png) [@system](https://discourse.nodered.org/u/system)
#### Post date: [1 March 2025 21:46 UTC](https://discourse.nodered.org/t/workspace-stops-working-to-many-connections-on-raspberry-pi/93522/30 "2025-03-01T21:46:34Z")

</div>

This topic was automatically closed 90 days after the last reply. New replies are no longer allowed.

[Previous page](https://discourse.nodered.org/t/workspace-stops-working-to-many-connections-on-raspberry-pi/93522.md?page=1)
