You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
what is the FIX for warning: "warning: possible EventEmitter memory leak detected. 51 open listeners added. Use emitter.setMaxListeners() to increase limit."
#183
Open
eriknyk opened this issue
Jan 9, 2016
· 4 comments
Hi, I would to know howto fix the warning: warning: possible EventEmitter memory leak detected. 51 open listeners added. Use emitter.setMaxListeners() to increase limit.
I seen that there are similar closed issues of it, but without real solutions.
Running into this too, I am not sure, but I think it happens when there are too many queries executed, when mongoskin returned promise, but have not connected to database yet.
I usually do something like this:
var db = mongo.db(dbName, dbOptions);
db._emitter.setMaxListeners(0);
Hi, I would to know howto fix the warning: warning: possible EventEmitter memory leak detected. 51 open listeners added. Use emitter.setMaxListeners() to increase limit.
I seen that there are similar closed issues of it, but without real solutions.
if you see here (http://www.jongleberry.com/understanding-possible-eventemitter-leaks.html),
seems removeListeners is being missing
#117
Best Regards.
The text was updated successfully, but these errors were encountered: