Shipping an AI app or agent? Security review in 1 working day: $149 / ₹13,900. Request a review →
AI Review Ready
Home / Error fixes / n8n may have run out of memory
Fix · n8n self-hosted · n8n Cloud

n8n: may have run out of memory while running this execution

What it means: n8n saw the node start but never finish, usually because the n8n process died, and labels that a possible out-of-memory crash. It's a guess, not proof. Check whether the process was really killed for memory (Docker's OOMKilled, the logs) before raising memory. If it was, follow n8n's memory guide: smaller batches, sub-workflows, fewer manual runs of big data, more RAM or --max-old-space-size.

At a glance
ErrorExecution 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 itDuring execution recovery, for a node with a "node started" event and no "node finished" event
Real memory errors look likeAllocation failed - JavaScript heap out of memory or FATAL ERROR: Zone Allocation failed - process out of memory in the server log
n8n's fixesProcess 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
Reports3 people on GitHub, Sep to Nov 2026 (#37991, #38396, #43049), plus a 4th "same problem" in #43049
Checked5 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=SIZE through NODE_OPTIONS, for example NODE_OPTIONS=--max-old-space-size=4096 (MB; the value is an example). Code node tasks run in the task runner, which has its own N8N_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 memory while 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

Sources

Read 5 Dec 2026. These tools change often: if a step no longer matches, the linked page wins.

Related free tools