Skip to content
This repository has been archived by the owner on Jul 8, 2021. It is now read-only.

node.js: "Possible EventEmitter memory leak detected" #188

Open
finnoleary opened this issue Feb 8, 2018 · 2 comments
Open

node.js: "Possible EventEmitter memory leak detected" #188

finnoleary opened this issue Feb 8, 2018 · 2 comments

Comments

@finnoleary
Copy link

finnoleary commented Feb 8, 2018

After following neauoire's feed and scrolling a little, I have this warning flood my terminal:

(node:1410) MaxListenersExceededWarning: Possible EventEmitter memory leak detected. 11 download listeners added. Use emitter.setMaxListeners() to increase limit
(node:1410) MaxListenersExceededWarning: Possible EventEmitter memory leak detected. 11 download listeners added. Use emitter.setMaxListeners() to increase limit
(node:1410) MaxListenersExceededWarning: Possible EventEmitter memory leak detected. 11 download listeners added. Use emitter.setMaxListeners() to increase limit
(node:1410) MaxListenersExceededWarning: Possible EventEmitter memory leak detected. 11 download listeners added. Use emitter.setMaxListeners() to increase limit
(node:1410) MaxListenersExceededWarning: Possible EventEmitter memory leak detected. 11 download listeners added. Use emitter.setMaxListeners() to increase limit
(node:1410) MaxListenersExceededWarning: Possible EventEmitter memory leak detected. 11 download listeners added. Use emitter.setMaxListeners() to increase limit
(node:1410) MaxListenersExceededWarning: Possible EventEmitter memory leak detected. 11 download listeners added. Use emitter.setMaxListeners() to increase limit
@0x0ade
Copy link
Member

0x0ade commented Feb 8, 2018

My guess: RotonDB calls createFileActivityStream once per archive, but the error message seems to indicate that we're hitting a global (Beaker?) limit.

If the error really stems from RotonDB's usage of createFileActivityStream, I unfortunately don't know how to prevent this. Sorry.

@pfrazee
Copy link

pfrazee commented Feb 8, 2018

This is just a warning. Having a lot of event handlers registered can be a sign of a leak. I haven't looked into whether it's actually a leak or the natural usage by Rotonde. Either way, it's more of a Beaker problem than a Rotonde problem

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants