-
Notifications
You must be signed in to change notification settings - Fork 235
Description
Hi,
Is there any known memory leak issue with grpc-js + google-gax?
We have an application running on Nodejs 20 and we are trying to pinpoint what could be the root cause of this forever increasing memory consumption:
We compared two memory heap dumps from this application, just a few hours appart:
And you can see that all the hot paths are pointing to google grpc-js and google-gax. Zooming in a bit you can see it with more details:
This NestJS application runs on Node20, the lib versions are:
├─┬ @google-cloud/[email protected]
│ └─┬ [email protected]
│ └── @grpc/[email protected]This applications uses google-gax from the google-cloud/pubsub library. It has just one server with a flow control of 50 messages. Two listeners (subscriptions), two different topics that that's pretty much it.
Is there any guidance here that could help us to fix this issue?