-
Notifications
You must be signed in to change notification settings - Fork 651
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. error #1027
Comments
I think this is the result of #1021. I'll need to figure out a better way to do that. |
also happens on node:12.10.0-alpine
|
for now i rolled back to ver "0.5.2" and it fixed the problem. |
Also facing the same issue on 12.4.0-stretch Cant rollback version as its part of google-gax which is nested inside @google-cloud/pubsub. |
@yatingoswami You can solve the issue for now by putting :
in your It seems that the issue is affecting a lot of packages. Maybe it would be better to rollback #1021 until it is fully resolved. |
How is a warning impeding production usage exactly? |
|
There's a massive memory leak. This warning is accurate. I observed consumption of ~1GB/h/instance across 200+ Google Cloud Functions (1k+ instances), causing so many OOMs that the retry mechanism gave up. This is a severe issue and I highly recommend downgrading to 0.5.2, which does not have this leak. |
In the past we have had various reports of this specific warning in other code paths, and in general it has not been indicative of memory leaks, but simply that there are more than 11 calls open simultaneously in a single channel. Because the warning was the only thing reported here, I assumed that that was the only user-facing symptom. Now that I know that there is a memory leak, I can investigate that and deploy a fix. |
Thanks, I thought it's being worked on and was just patiently waiting :) It should be very easy to reproduce, but just in case you can't, I can provide a repro (although there are some code samples in this thread already). |
grpc-js version 0.5.4 is now out with the fix for this. |
@murgatroid99 looks like the build is failing |
If you're referring to the version bump build, that's just because I merged it quickly. |
I can confirm that there's no memory leak anymore. |
What is the call stack for those errors? I removed the line of code that caused the original errors; it doesn't exist in version 0.5.4. |
I am on 5.2 as per recommended and am seeing a MASSIVE memory leak from something different that may be related. googleapis/nodejs-firestore#768 |
I tried the last version of this module and got the following error after a while :
|
@apatora that looks like an entirely separate error. I suggest filing a separate issue with more details. |
@apatora I'm facing the same error in Google Cloud Functions. Did you find any workaround? |
All problems solved after updating to:
|
Problem description
I am using the package @google-cloud/bigtable which relies on this one and when I ran npm install today it updated @grpc/grpc-js from 0.5.2 to 0.5.3. I am getting the following error :
Reproduction steps
Run
npm i @google-cloud/bigtable
in a project. Then try to execute for example :Environment
I am running the code in the following docker image :
node:10.16.0
The text was updated successfully, but these errors were encountered: