[Warning] MaxListenersExceededWarning: Possible EventEmitter memory leak detected
See original GitHub issueDescribe the bug
As seen in this log at line time 3:16:09 PM:
(node:1262) MaxListenersExceededWarning: Possible EventEmitter memory leak detected. 11 data listeners added to [Socket]. Use emitter.setMaxListeners() to increase limit
Steps to reproduce
Running my infamous debug repo 😃
Expected behavior
Everything runs just fine. Wanted to give a heads up in the case this is not expected, so you can take a look at it.
Configuration
I did bump node from 10 to 12 to see if the warning was still there, just in case.
Screenshots
If applicable, add screenshots to help explain your problem.
Issue Analytics
- State:
- Created 4 years ago
- Comments:8 (5 by maintainers)
Top Results From Across the Web
possible EventEmitter memory leak detected - node.js
I'd like to point out here that that warning is there for a reason and there's a good chance the right fix is...
Read more >(node:30) MaxListenersExceededWarning: Possible ... - GitHub
(node:30) MaxListenersExceededWarning: Possible EventEmitter memory leak detected. 11 close listeners added. Use emitter.setMaxListeners() to increase limit ...
Read more >How to fix possible EventEmitter memory leak detected - cri.dev
The warning possible EventEmitter memory leak detected happens when you have more than 10 listeners (read EventEmitter) attached to an event ...
Read more >Possible EventEmitter memory leak detected. 11 scanStop ...
The node red console indicates "MaxListenersExceededWarning: Possible EventEmitter memory leak detected. 11 scanStop listeners added. Use emitter.
Read more >Understanding memory leaks in node.js part 2 - alxolr
(node:10031) MaxListenersExceededWarning: Possible EventEmitter memory leak detected. Eleven event listeners added. Use emitter.
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
I am looking into this issue but debugging it is currently hard because of implementation details summarized in #878. Thanks for following up!
@talves I can reproduce the bug even with the latest version.
If you regenerate the
yarn.lock
, you should get the latest@netlify/build
(0.1.80
as I write this).@netlify/cli
uses the following semver range:"@netlify/build": "^0.1.7"
. But youryarn.lock
might hold this up.