Skip to content

n8n is taking a lot of RAM memory #7939

Closed as not planned
Closed as not planned
@pablorq

Description

@pablorq

Describe the bug
The n8n process is taking a lot of RAM memory, in this case 1.1 GB, and 41.7 GB of virtual memory.

To Reproduce
Steps to reproduce the behavior:

  1. Install n8n using Docker/Portainer
  2. Use it with some workflows managing some data (5000 rows in a Google Sheets, for instance)
  3. Check the System Monitor.
  4. See RAM memory consumption

Expected behavior
A little memory consumption when idle. If taking a lot of memory during a workflow run, release it when it ends.

Environment (please complete the following information):

  • OS: Ubuntu Linux 23.10
  • n8n Version: 1.16.0
  • Node.js Version: ?
  • Database system: postgresql
  • Operation mode [e.g. own; operation modes are own, main and queue. Default is main]

Additional context
Here are some screenshots.
All process list sort by memory:
Screenshot from 2023-12-05 20-44-08

n8n process details:
Screenshot from 2023-12-05 20-46-59

I did a new fresh install of the same Docker stack, without any workflow, and the memory consumption seems to be low. This makes me thing about this could be a (or some) workflow that is taking a lot memory, or that successive running keep increasing the memory without release it.

In any case the memory should be freed when no workflow is running.

Metadata

Metadata

Assignees

No one assigned

    Labels

    in linearIssue or PR has been created in Linear for internal review

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions