Hello,
I'm running Node-RED inside a Docker container and everything had been working fine for a long time. I haven’t made any recent changes to the flows or configuration. However, starting today, Node-RED is being killed due to memory limit being exceeded.
The log ends with something like:
Killed /usr/local/bin/node $NODE_OPTIONS node_modules/node-red/red.js --userDir /data $FLOWS
I have not installed any new nodes or updated anything. The system had been stable for weeks.
Now it crashes shortly after startup, especially when flows start running.
My setup:
- Node-RED version: 3.1.0
- Memory available to container: 750Mi
What I've tried:
- Restarting the container.
- Watching memory usage (it rises quickly).
- No new flows were deployed.
Questions:
- What could be causing this sudden memory spike?
- How can I identify memory-heavy nodes or leaks?
- Would increasing
--max-old-space-size
help, or is this just masking the real issue?
Any insights or suggestions would be greatly appreciated
Thanks in advance!