Too many listeners
See original GitHub issueWhen sending a transaction, I get an error:
(node) warning: possible EventEmitter memory leak detected. 11 listeners added. Use emitter.setMaxListeners() to increase limit.
It’s coming from the Filter subprovider onFilterChange _ready.on method. That _ready object needs its listener max raised, or has a memory leak.
Issue Analytics
- State:
- Created 7 years ago
- Reactions:5
- Comments:17 (5 by maintainers)
Top Results From Across the Web
Does adding too many event listeners affect performance?
In terms of performance, the number of elements the event is bound to is where you'd see any issues. Here is a jsperf...
Read more >sudden "too many listeners on GPIB" error - NI Community
Solved: Out of the blue, I am suddenly dealing with this "too many listeners on the GPIB" error, and my PC could no...
Read more >Node.js sends warnings when you add too many listeners to ...
Node.js gives friendly warnings in case you add too much event listeners to an event emitter.
Read more >Will too many listeners and routes affect performance? #29684
I have a k8s cluster with about 500 services, and then I use istio to manage a project. But I checked the listener...
Read more >1.16.5 - Register too many listeners | SpigotMC - SpigotMC
I have lots of objects, which represent a type of item, each object listens to separate events and acts when that event occurs....
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 don’t seem to have this issue in the browser, but I do get the warning in Node.js.
I’m using 0x on the server side and using the web3 provider engine to listen to certain 0x log events (fill, cancel, error). I’ve added the filter and RPC subproviders. The RPC subprovider is connected to Infura.
Adding this line to the top of
server.jsmakes the error not show up again:require('events').EventEmitter.prototype._maxListeners = 100;