-
Notifications
You must be signed in to change notification settings - Fork 286
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
MaxListenersExceededWarning: Possible EventEmitter memory leak detected. 11 connection listeners added. Use emitter.setMaxListeners() to increase limit #1051
Comments
If it's benign, you can suppress it with |
@slim-hmidi Node.js as default allow you to set 10 listeners for any single event as reported here: |
@bnoordhuis it's |
@jennyvallon, awesome thank you. |
Is it possible to identify in "Model" when the query ends and remove the listener? Like that?
|
I tried a few different solutions that didn't work for me:
What did work for me: Limiting the idle memory per worker (setting: workerIdleMemoryLimit). I'm also limiting the number of workers so maybe it was a combination of the solutions. |
I run this test in jest:
I got this error:
The text was updated successfully, but these errors were encountered: