Warning: possible EventEmitter memory leak detected. #40

Closed
ge-org opened this Issue May 21, 2012 · 1 comment

Comments

Projects
None yet
1 participant

ge-org commented May 21, 2012

(node) warning: possible EventEmitter memory leak detected. 11 listeners added.
Use emitter.setMaxListeners() to increase limit.
Trace: 
    at Client.<anonymous> (events.js:139:15)
    at [object Object]._queueRequest (/node_modules/felix-couchdb/lib/couchdb.js:158:16)
    at [object Object].request (/node_modules/felix-couchdb/lib/couchdb.js:269:15)
    at [object Object].request (/node_modules/felix-couchdb/lib/couchdb.js:341:24)
    at [object Object].view (/node_modules/felix-couchdb/lib/couchdb.js:557:17)

I am iterating over some objects and are sending a request to Couch for everyone of it. I think this causes the warning. Anything I can do to prevent it?

ge-org commented May 22, 2012

Solved :-)
Just found out that it's possible to set maxListeners on createClient()

ge-org closed this May 22, 2012

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment