Code Monkey home page Code Monkey logo

Comments (4)

Joffcom avatar Joffcom commented on July 25, 2024

Hey @caiquezanetoni

This doesn't look like a bug, it just looks like you don't have enough memory on your machine for n8n to run what you are putting through it.

What are your workflows doing and what sort of resources do you have available for n8n?

How do you have n8n deployed as well?

from n8n.

caiquezanetoni avatar caiquezanetoni commented on July 25, 2024

@Joffcom
Captura de Tela 2024-03-20 às 11 06 03

This is the memory usage graph of the n8n machine.

Stack in portainer:

version: "3.7"
services:
n8nqg7tjtj_admin:
image: n8nio/n8n:latest

command: start
networks:
- network_public
environment:
- DB_TYPE=postgresdb
- DB_POSTGRESDB_DATABASE=
- DB_POSTGRESDB_HOST=postgres
- DB_POSTGRESDB_PORT=5432
- DB_POSTGRESDB_USER=postgres
- DB_POSTGRESDB_PASSWORD=
- N8N_ENCRYPTION_KEY=
- N8N_HOST=
- N8N_EDITOR_BASE_URL=
- N8N_PROTOCOL=https
- NODE_ENV=production
- WEBHOOK_URL=
- EXECUTIONS_MODE=queue
- QUEUE_BULL_REDIS_HOST=redis
- QUEUE_BULL_REDIS_PORT=6379
- QUEUE_BULL_REDIS_PASSWORD=
- QUEUE_BULL_REDIS_DB=1
- NODE_FUNCTION_ALLOW_EXTERNAL=moment,lodash,moment-with-locales
- EXECUTIONS_DATA_PRUNE=1
- EXECUTIONS_DATA_MAX_AGE=336
volumes:
- n8nqg7tjtj_data:/data/backup
deploy:
  mode: replicated
  replicas: 1
  placement:
    constraints:
    - node.role == manager
  labels:
  - traefik.enable=1
  - traefik.http.routers.n8nqg7tjtj_a.rule=
  - traefik.http.routers.n8nqg7tjtj_a.entrypoints=websecure
  - traefik.http.routers.n8nqg7tjtj_a.priority=2
  - traefik.http.routers.n8nqg7tjtj_a.tls.certresolver=letsencryptresolver
  - traefik.http.routers.n8nqg7tjtj_a.service=n8nqg7tjtj_a
  - traefik.http.services.n8nqg7tjtj_a.loadbalancer.server.port=5678
  - traefik.http.services.n8nqg7tjtj_a.loadbalancer.passHostHeader=1

n8nqg7tjtj_webhook:
image: n8nio/n8n:latest

command: webhook
networks:
- network_public
environment:
- DB_TYPE=postgresdb
- DB_POSTGRESDB_DATABASE=
- DB_POSTGRESDB_HOST=postgres
- DB_POSTGRESDB_PORT=5432
- DB_POSTGRESDB_USER=postgres
- DB_POSTGRESDB_PASSWORD=
- N8N_ENCRYPTION_KEY=
- N8N_HOST=
- N8N_EDITOR_BASE_URL=
- N8N_PROTOCOL=https
- NODE_ENV=production
- WEBHOOK_URL=
- EXECUTIONS_MODE=queue
- QUEUE_BULL_REDIS_HOST=redis
- QUEUE_BULL_REDIS_PORT=6379
- QUEUE_BULL_REDIS_PASSWORD=
- QUEUE_BULL_REDIS_DB=1
- NODE_FUNCTION_ALLOW_EXTERNAL=moment,lodash,moment-with-locales
- EXECUTIONS_DATA_PRUNE=1
- EXECUTIONS_DATA_MAX_AGE=336
deploy:
  mode: replicated
  replicas: 1
  placement:
    constraints:
    - node.role == manager
  labels:
  - traefik.enable=1
  - traefik.http.routers.n8nqg7tjtj_w.rule=
  - traefik.http.routers.n8nqg7tjtj_w.entrypoints=websecure
  - traefik.http.routers.n8nqg7tjtj_w.priority=1
  - traefik.http.routers.n8nqg7tjtj_w.tls.certresolver=letsencryptresolver
  - traefik.http.routers.n8nqg7tjtj_w.service=n8nqg7tjtj_w
  - traefik.http.services.n8nqg7tjtj_w.loadbalancer.server.port=5678
  - traefik.http.services.n8nqg7tjtj_w.loadbalancer.passHostHeader=1

n8nqg7tjtj_worker:
image: n8nio/n8n:latest

command: worker --concurrency=10
networks:
- network_public
environment:
- DB_TYPE=postgresdb
- DB_POSTGRESDB_DATABASE=
- DB_POSTGRESDB_HOST=postgres
- DB_POSTGRESDB_PORT=5432
- DB_POSTGRESDB_USER=postgres
- DB_POSTGRESDB_PASSWORD=
- N8N_ENCRYPTION_KEY=
- N8N_HOST=
- N8N_EDITOR_BASE_URL=
- N8N_PROTOCOL=https
- NODE_ENV=production
- WEBHOOK_URL=
- EXECUTIONS_MODE=queue
- QUEUE_BULL_REDIS_HOST=redis
- QUEUE_BULL_REDIS_PORT=6379
- QUEUE_BULL_REDIS_PASSWORD=
- QUEUE_BULL_REDIS_DB=1
- NODE_FUNCTION_ALLOW_EXTERNAL=moment,lodash,moment-with-locales
- EXECUTIONS_DATA_PRUNE=1
- EXECUTIONS_DATA_MAX_AGE=336
deploy:
  mode: replicated
  replicas: 1
  placement:
    constraints:
    - node.role == manager
  labels:
  - traefik.enable=

volumes:
n8nqg7tjtj_data:
external: true
name: n8nqg7tjtj_datad
networks:
network_public:
name: network_swarm_public
external: true
...

from n8n.

Joffcom avatar Joffcom commented on July 25, 2024

Hey @caiquezanetoni,

The error message means NodeJS doesn't have enough memory, You can try and allocate more memory by setting NODE_OPTIONS=--max_old_space_size=4096 but I would recommend tweaking the workflows first.

As this doesn't appear to be a bug with n8n itself I am going to mark this as closed, Let me know how you get on with increasing the memory available or if you have any other questions on this.

from n8n.

DaxServer avatar DaxServer commented on July 25, 2024

@Joffcom What do you mean by that this is not a bug with n8n itself? Isn't n8n capable of running within the constraints of memory, say, for example, by offloading data to disk to free up memory?

from n8n.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.