0

Error:

(node) warning: possible EventEmitter memory leak detected. 11 wakeup listeners added. Use emitter.setMaxListeners() to increase limit.

The question is whether to pay attention to it and increase the limits? Or can I ignore it? In fact, it does not affect

NodeJS 0.12.18
coder fire
  • 993
  • 2
  • 11
  • 24

1 Answers1

0

If you're expecting that EventEmitter to have more than ten listeners, then you should use setMaxListeners() to increase the limit.

If you were not expecting so many, then you probably have a listener leak (i.e. you keep adding instead of replacing).

OrangeDog
  • 36,653
  • 12
  • 122
  • 207