N8N continuously using more RAM

N8N using excessive amounts of RAM

No error messsage

Workflow doesn’t effect this happening ( happens on every workflow )

Information on your n8n setup

  • n8n version: 1.77.3
  • Database (default: SQLite): Default
  • n8n EXECUTIONS_PROCESS setting (default: own, main):
  • Running n8n via (Docker, npm, n8n cloud, desktop app): Docker and also happens with npm
  • Operating system: Ubuntu 24.04.1 LTS

Description:

Every time I execute the workflow the RAM increases by 500MB - 1GB

Initially I was using npm and after reading some discussions on this forum, I decided to swap to docker instead.

on system Monitor the “web content” shows at around 5GB after 5-10 runs.
Docker’s container memory usage shows around 275MB / 7.85GB and CPU usage of 0.06%.

I am reluctant to share the workflow as it contains sensitive information.
the most a HTTP get request will process is roughly 30MB.
I have non active workflows, only the one i am testing with the test trigger.

RAM usage does not disappear after i “bin” the workflow to clear data to test again.

Fully restarting my locally hosted n8n server resets the ram to a normal level ~500MB

I have read some similar posts but this was never resolved.
Any ideas?

UPDATE

I am testing a the flow with the merge nodes removed and RAM does not increase, when adding Merge nodes back in, RAM increases…

Progress report

I have stopped the workflow executions from saving.
This stops errors where the workflow just freezes…
This also stops the ram from accumulating.

Will update when further tests are done.
Ram now stays around 1-2 GB

2 Likes

Hi @charleixd,
Welcome to the community and thanks for posting! It’s hard to tell what the cause of the issue is without looking at your workflows but thanks for all the updates.

For reference, we have some documentation on memory issues here: