warning: possible EventEmitter memory leak detected.
Opened this issue · 4 comments
pepijndevos commented
When trying to connect to a remote RabbitMQ, no data is received and it shows 2 of these warnings. Any idea what's wrong?
(node) warning: possible EventEmitter memory leak detected. 11 listeners added. Use emitter.setMaxListeners() to increase limit.
Trace
at Connection.EventEmitter.addListener (events.js:160:15)
at Connection.connect (/usr/lib/node_modules/amqp-tool/node_modules/amqp-dsl/node_modules/amqp/amqp.js:1068:8)
at Connection.reconnect (/usr/lib/node_modules/amqp-tool/node_modules/amqp-dsl/node_modules/amqp/amqp.js:1038:8)
at null._onTimeout (/usr/lib/node_modules/amqp-tool/node_modules/amqp-dsl/node_modules/amqp/amqp.js:876:16)
at Timer.listOnTimeout [as ontimeout] (timers.js:110:15)
This is the command I'm using
amqp-tool --host blabla.bigwig.lshift.net --port 10035 --user foo --password password --queue celery --exchange celery --count 5000 --export dump.json
pepijndevos commented
I was missing the --vhost
, but the warning could possibly be fixed =)
FGRibreau commented
@pepijndevos I am sorry I don't have the time to fix it right now, could you send a pull request ?
Deleted user commented
was this problem ever fixed?
FGRibreau commented
@amitmiran I am not sure. If not you can always send a pull-request to fix it, in either case it's not a big issue regarding amqp-tool general usage.