Error: Execution stopped at this node n8n may have run out of memory while running this execution

Describe the problem/error/question

My N8N crushes and I loose connection to the server (no available server) every time I run a scenario and it arrives to AI agent.

What is the error message (if any)?

Error: Execution stopped at this node n8n may have run out of memory while running this execution.

Please share your workflow

Share the output returned by the last node

Execution stopped at this node

n8n may have run out of memory while running this execution. More context and tips on how to avoid this in the docs

Information on your n8n setup

  • **n8n version:1.98.2
  • **Database (default: SQLite):SQLITE
  • **n8n EXECUTIONS_PROCESS setting (default: own, main):own
  • **Running n8n via (Docker, npm, n8n cloud, desktop app):Docker
  • **Operating system:LInux, vps

Your workflow is well-structured, but due to its nature (multiple calls to LLM models + API + external writing), it can saturate n8n’s memory if you don’t control the volume per execution.

You should use SplitInBatches with real batch execution. Ensure each batch is processed and its execution is completely closed before moving on to the next. Or, invoke a sub-workflow for each batch using the Execute Workflow node.

Reduce serial AI dependencies. If you don’t need the results of one model to be passed to another, run the LLMs in parallel to reduce the lifetime of each execution. Add a NoOp or Set to cut the data tree and help n8n free up memory.

1 Like

@Erick_Torres thanks a lot for this info. I am using batching now and it is working again. Had to split some agents into AI nodes and then process the data on another node separately, but the most important is that it works again.

1 Like