How can I debug my application which throw this error:
(node) warning: possible EventEmitter memory leak detected. 11 listeners added. Use emitter.setMaxList
This warning will be thrown if you register for a particular event of a same object more than 11 times.
Check if you are having 'on' call for particualr event in a function which you are calling frequently, this leads to registering for an event multiple times.
This link helped me to understand this.
Since node 6 you should use node --trace-warnings
: https://nodejs.org/api/cli.html#cli_trace_warnings