How can I debug my application which throw this error:
(node) warning: possible EventEmitter memory leak detected. 11 listeners added. Use emitter.setMaxList
For me it's looks like your event loop is blocked. This can happen if you are doing cpu intensive tasks in node.js event loop. You can use child process to do intensive task.
You can check what is blocking node.js using following methods:
function timeTick() {
var startTime = (new Date().getTime());
function onTick() {
var interval = (new Date().getTime()) - startTime;
if(interval > 5)
console.log('timeTick(): WARNING: interval = ' + interval);
}
process.nextTick(onTick);
}
setInterval(timeTick, 1000);