| Error | Execution stopped at this node n8n may have run out of memory while running this execution. (Node crashed, possible out-of-memory issue) |
|---|---|
| When n8n shows it | During execution recovery, for a node with a "node started" event and no "node finished" event |
| Real memory errors look like | Allocation failed - JavaScript heap out of memory or FATAL ERROR: Zone Allocation failed - process out of memory in the server log |
| n8n's fixes | Process data in smaller chunks, split into sub-workflows, avoid the Code node and manual runs for big data, add memory, or set --max-old-space-size |
| Reports | 3 people on GitHub, Sep to Nov 2026 (#37991, #38396, #43049), plus a 4th "same problem" in #43049 |
| Checked | 5 Dec 2026, against the sources listed below |
Step 1: was it really memory?
In n8n's source (execution-recovery.service.ts), when n8n recovers an execution after a crash, any node with a "started" event but no "finished" event gets NodeCrashedError, whose text is this message. Anything that kills the process mid-node produces it. In #43049 a commenter pointed this out; the reporter's crash log then showed signal 4 (SIGILL, an illegal CPU instruction) for /usr/local/bin/node, and the Docker exit code discussed in the thread was 132 (128 + 4): not an out-of-memory kill. Raising the heap to 2 GB hadn't helped.
Checks for Docker (read-only), from that thread:
docker compose ps --all
docker inspect --format 'OOMKilled={{.State.OOMKilled}} ExitCode={{.State.ExitCode}} Restarts={{.RestartCount}}' CONTAINER_NAME
OOMKilled=true or a log line like JavaScript heap out of memory means memory. Note OOMKilled only covers the time since the container last started.
Step 2a: if it is memory (n8n's guide)
- Process less per execution. n8n's example: "process 200 rows with each execution" instead of 10,000.
- Split into sub-workflows that return only a small result to the parent, with Loop Over Items and Execute Workflow.
- Avoid the Code node and manual executions for large data: manual runs copy the data for the editor.
- More memory: a bigger server, or a larger n8n Cloud plan.
- Self-hosted: raise V8's old-space limit with
--max-old-space-size=SIZEthroughNODE_OPTIONS, for exampleNODE_OPTIONS=--max-old-space-size=4096(MB; the value is an example). Code node tasks run in the task runner, which has its ownN8N_RUNNERS_MAX_OLD_SPACE_SIZE(empty = Node chooses).
Step 2b: if it isn't memory
- Crashes with SIGILL / exit code 132 on a VM: one user on Proxmox (n8n 2.48.7 in Docker) reports the crashes stopped after changing the VM's processor type from "Default (x86-64-v2-AES)" to "host" (#43049). That's a single report, not an n8n fix.
- Long manual runs: in #38396 a 6.5-hour manual execution died with
FATAL ERROR: Zone Allocation failed - process out of memorywhile the editor kept showing "Running". Run long jobs as production executions in chunks, which is also n8n's advice above. - n8n Cloud: in #37991 a workflow reading small Data Tables crashed with this message on every run and was deactivated; n8n asked for Cloud issues to go to support by email.
Running Claude Code, Codex or Cursor on real repos, or shipping an AI agent? A Quick Review ($149 / ₹13,900, 1 working day) checks one repo, config or setup for leaked keys, risky agent permissions and MCP servers. Request a Quick Review
FAQ
What does 'n8n may have run out of memory while running this execution' mean?
n8n found a node that started and never finished, usually because the n8n process died, and labels it a possible out-of-memory crash. It doesn't prove memory was the cause.
How do I check if n8n really ran out of memory?
Look for 'JavaScript heap out of memory' in the logs, or OOMKilled=true from docker inspect on the container. An exit code 132 or signal 4 is an illegal instruction, not memory.
How do I give n8n more memory?
Self-hosted: more RAM, and --max-old-space-size through NODE_OPTIONS. Code node tasks have their own N8N_RUNNERS_MAX_OLD_SPACE_SIZE. On Cloud, a larger plan.
How do I stop it without more memory?
n8n's guide: process data in smaller chunks, split work into sub-workflows that return little data, and avoid the Code node and manual executions for big data.
Related errors
- n8n: Task request timed out (Code node not matched to a runner)
- n8n: Output data redacted (credential you don't have access to)
- Ollama: CUDA error: out of memory
Sources
Read 5 Dec 2026. These tools change often: if a step no longer matches, the linked page wins.
- n8n source: NodeCrashedError, the message (node-crashed.error.ts L4-L12): github.com/n8n-io/n8n/blob/c40524fb7299ab7c31d0d7546807fc8ead75f6b7/packages/cli/src/errors/node-crashed.error.ts#L4-L12
- n8n source: set for nodes that started but never finished (execution-recovery.service.ts L213-L243): github.com/n8n-io/n8n/blob/c40524fb7299ab7c31d0d7546807fc8ead75f6b7/packages/cli/src/executions/execution-recovery.service.ts#L213-L243
- n8n docs: Memory-related errors (causes and fixes): docs.n8n.io/hosting/scaling/memory-errors/
- n8n docs: task runner env vars (N8N_RUNNERS_MAX_OLD_SPACE_SIZE): docs.n8n.io/hosting/configuration/environment-variables/task-runners/
- n8n-io/n8n #43049 (Extract from PDF; SIGILL, exit 132; Proxmox CPU type): github.com/n8n-io/n8n/issues/43049
- n8n-io/n8n #38396 (6.5 h manual run, Zone Allocation failed): github.com/n8n-io/n8n/issues/38396
- n8n-io/n8n #37991 (n8n Cloud, Data Tables, workflow deactivated): github.com/n8n-io/n8n/issues/37991
- reviewready CLI: one command that checks an AI app repo before it ships
- LLM API cost checker: find LLM calls with no limits or retries capped