New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
(node) warning: possible EventEmitter memory leak detected. 11 listeners added #661
Comments
We can fix it in our code by setMaxListeners(n): process.setMaxListeners(0); Although, probably bluebird may want to do the same in here. |
I'd argue this isn't something that bluebird should do, as it has global side-effects, and because it can already be fixed on the application's (or in this case, jest's) side. Plus, it might cover up real leaks, though 10 seems like a pretty arbitrarily low value. We probably only get the error in jest because of the software's complexity. |
Bluebird is just adding 1 handler here (per instance) if I understand On Tue, Jun 23, 2015 at 8:17 PM, Benjamin Woodruff <notifications@github.com
|
Well, Bluebird could do if (process._maxListeners)
process.setMaxListeners(process._maxListeners + 1); if there is really a need for this. |
We tried switching from
Q
tobluebird
in the Jest project, and started constantly to get this warning:We ran many tests in parallel, seems many promises are created, but
Q
didn't have this issue.The text was updated successfully, but these errors were encountered: