0

I need to proof the concepts that it's possible to create a memory leak with EventEmmiters in node.js. I tried to google, but all of the examples are about frontend stuff(e.g.: Backbone views) or about polluting the global scope.

kharandziuk
  • 12,020
  • 17
  • 63
  • 121
  • 1
    Hi, I've found a thread here in SO which might help you: https://stackoverflow.com/questions/9768444/possible-eventemitter-memory-leak-detected – t3__rry Aug 07 '18 at 08:26

1 Answers1

0

Create an eventListener each time some client is accessing a resource for example. After 10 eventListener you'll have some node warnings.With 50-100 event listeners it should be bad enough. Then start to emit events it will probably not go well.

François Richard
  • 6,817
  • 10
  • 43
  • 78