Node-red ended with exception

I am using the ping node for checking nodes to be alive. he error message:

Jan 05:52:22 - Error: spawn ENOMEM
at ChildProcess.spawn (internal/child_process.js:372:11)
at spawn (child_process.js:544:9)
at Timeout._onTimeout (/root/.node-red/node_modules/node-red-node-ping/88-ping.js:15:62)
at listOnTimeout (timers.js:324:15)
at processTimers (timers.js:268:5)
is there any mode I can prevent node-red from stopping? Is the ping node not stable?

ENOMEM means it is out of memory.

What else are you running?

As an aside is there any reason you are running as root?

Also

  1. what platform are you using?
  2. what version of NR and Node.js?
  3. how much free storage do you have? (On a Pi you can do df -h to find out
  4. what are you doing in your flow?
  5. have you checked your folws to see if you have a loop?