On Deploy - FATAL ERROR: Ineffective mark-compacts near heap limit Allocation failed - JavaScript heap out of memory

Every time I deploy I get....

[15:12:09] INFO: Starting NGinx...
20 Oct 15:12:09 - [info] Starting flows
20 Oct 15:12:50 - [info] Started flows
<--- Last few GCs --->
[481:0x7f9f46c2a0] 116359 ms: Mark-sweep (reduce) 1824.2 (1900.4) -> 1823.6 (1901.4) MB, 2665.0 / 2.3 ms (average mu = 0.222, current mu = 0.202) deserialize GC in old space requested
[481:0x7f9f46c2a0] 119680 ms: Mark-sweep (reduce) 1823.7 (1900.4) -> 1823.6 (1901.4) MB, 2640.4 / 1.2 ms (average mu = 0.214, current mu = 0.205) deserialize GC in old space requested
<--- JS stacktrace --->
FATAL ERROR: Ineffective mark-compacts near heap limit Allocation failed - JavaScript heap out of memory
2021/10/20 15:14:02 [error] 524#524: *1 recv() failed (104: Connection reset by peer) while reading response header from upstream, client: 172.30.32.2, server: a0d7b954-nodered, request: "GET / HTTP/1.1", upstream: "http://127.0.0.1:46836/", host: "192.168.1.170:8123", referrer: "http://192.168.1.170:8123/a0d7b954_nodered"
[15:14:03] INFO: Starting Node-RED...

start
node $NODE_OPTIONS node_modules/node-red/red.js "--settings" "/etc/node-red/config.js"

Reading through it seems to be a flow causing the issue, I've deleted flows then re added them, looked into each flow and buit it back. I've created new flows with different content, then the issue comes back over time.

I've taken the flows.json file accross to my dev pi that is running Home Assistant and Node red in the same way the prod box is and it crashes. The home assistant build on the dev box is completely empty.

my prod box is a pi 4 8g and my dev box is a pi 4 4g.

Just can't work out what is causing it.

Running 10.0.1 node red

Core
Version
core-2021.10.4

Supervisor
Version
supervisor-2021.10.0

Operating System
Home Assistant OS 6.5

What happens if you start it in safe mode?
Node-red —safe

Hi Zenofmud,

Thanks for the reply. I've read about safe mode, but can't work out how to activate it in a Home Assiatnt / Node Red setup. do you know?

Sorry, I don't use Home assistant so I don't know. You might post that question on the Home Assistant forum...

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