MaxListenersExceededWarning

Describe the problem/error/question

I get this error message and not sure, what this means:

What is the error message (if any)?

(node:1708981) MaxListenersExceededWarning: Possible EventEmitter memory leak detected. 11 editorUiConnected listeners added to [Push]. Use emitter.setMaxListeners() to increase limit

Please share your workflow

(Select the nodes on your canvas and use the keyboard shortcuts CMD+C/CTRL+C and CMD+V/CTRL+V to copy and paste the workflow.)

Share the output returned by the last node

Information on your n8n setup

  • **n8n version:1.49.0
  • **Database (default: SQLite):Postgres
  • **n8n EXECUTIONS_PROCESS setting (default: own, main):own
  • **Running n8n via (Docker, npm, n8n cloud, desktop app):npm
  • **Operating system:AWS AMI 2023

Hey @Kool_Baudrillard,

It is a warning that you may have too many things going on but it shouldn’t break anything.

Can you share some more information about what you are using n8n for (lots of webhooks, multiple users connecting to the UI, anything like that)?

Hi,

4 users and a handful of webhooks. I’ll keep an eye on it.

Thx!

New version [email protected] got released which includes the GitHub PR 10077.

Not sure if the update was meant only to address messages in log files, or should have also suppressed these warning messages in console output, but I just observed this message on v1.61.0, running in docker w/ 1 main node and 3 worker nodes.

  • The messages occur somewhat reliably after about 10 or 11 calls (within a few seconds) to start a workflow via webhook-trigger.
  • Did not notice any failed requests (e.g. timeout or refusals/503/busy)
  • The messages did not appear in log files
  • The log related env settings were:
    •   - N8N_DIAGNOSTICS_ENABLED=false
        - N8N_LOG_OUTPUT=file,console
        - N8N_LOG_LEVEL=info
      

Excerpt of output from: docker-compose logs -f

n8n-worker3-1      | [JobProcessor] Starting job 68 (execution 208)
n8n-1              | [ScalingService] Added job 69 (execution 210)
n8n-1              | (node:7) MaxListenersExceededWarning: Possible EventEmitter memory leak detected. 11 global:completed listeners added to [Queue]. MaxListeners is 10. Use emitter.setMaxListeners() to increase limit
n8n-1              | (node:7) MaxListenersExceededWarning: Possible EventEmitter memory leak detected. 11 global:failed listeners added to [Queue]. MaxListeners is 10. Use emitter.setMaxListeners() to increase limit
n8n-worker1-1      | [JobProcessor] Starting job 69 (execution 210)
n8n-1              | [ScalingService] Added job 70 (execution 212)
n8n-worker2-1      | [JobProcessor] Starting job 70 (execution 212)

This topic was automatically closed 90 days after the last reply. New replies are no longer allowed.