andrewchilds / overcast

Orchestrate VMs from your terminal
MIT License
478 stars 36 forks source link

EventEmitter memory leak detected. 11 listeners added #13

Closed thariman closed 10 years ago

thariman commented 10 years ago

How do I increase the limit to eliminate this warning ? running under ubuntu precise with node v0.10.28

(node) warning: possible EventEmitter memory leak detected. 11 listeners added. Use emitter.setMaxListeners() to increase limit. Trace at ReadStream.EventEmitter.addListener (events.js:160:15) at sshExec (/usr/lib/node_modules/overcast/modules/ssh.js:117:17) at runOnInstance (/usr/lib/node_modules/overcast/modules/ssh.js:38:3) at runOnInstances (/usr/lib/node_modules/overcast/modules/ssh.js:25:3) at /usr/lib/node_modules/overcast/modules/ssh.js:27:7 at /usr/lib/node_modules/overcast/modules/ssh.js:52:7 at ChildProcess. (/usr/lib/node_modules/overcast/modules/ssh.js:161:7) at ChildProcess.EventEmitter.emit (events.js:98:17) at Process.ChildProcess._handle.onexit (child_process.js:807:12)

andrewchilds commented 10 years ago

Fixed in v0.4.5. I tried running 15 commands across 10 machines in parallel and no longer get this warning. Thanks!