You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Mar 19, 2026. It is now read-only.
Repository navigation
This repository was archived by the owner on Mar 19, 2026. It is now read-only.
3.5.8 causes an OOM when used with @google-cloud/datastore #248
I cannot easily reproduce it (neither with an empty list of properties nor with non-empty list), so I will need to ask you to help us figure out what's going on.
Would you be able to try versions of google-gax between 3.5.2 and 3.5.8 and see which exact version starts failing? I believe there were no changes in google-gax that could change anything related to memory allocation, but there were two updates of dependencies (@grpc/grpc-js and protobufjs) and it would be very useful to see if we need to dig into the changes in either of them.
We have been having a memory leak to in one of the other google packages, probably, the @google-cloud/pubsub package and after downgrading to 3.5.7 the memory disappeared. Before we were using 3.6.0
@weyert Just to confirm - no memory leak on 3.5.7 but leaking on 3.5.8, with no other changes? The only difference between them is related to the HTTP transport https://github.com/googleapis/gax-nodejs/pull/1431/files which is very unlikely to be used by @google-cloud/pubsub.
Could you share more details, preferably a repro, in a new issue since it seems not directly related to what @scottbessler describes here?
@alexander-fenster I haven't tested 3.5.8. I will see what I can do to test the versions between 3.5.7 and 3.6.0. I can only say that there was an issue in 3.6.0 and force a downgrade to 3.5.7 resolved the issue by adding [email protected] as main dependency of the project.
I will report back as soon as possible. Now that a solution has been found for the memory leak I need to work through my backlog of tasks before I can do the above, though. I hope to be able to get back end of the week or early next week.
Activity
alexander-fenster commentedon Mar 30, 2023
Hi @scottbessler,
I cannot easily reproduce it (neither with an empty list of properties nor with non-empty list), so I will need to ask you to help us figure out what's going on.
Would you be able to try versions of
google-gaxbetween 3.5.2 and 3.5.8 and see which exact version starts failing? I believe there were no changes ingoogle-gaxthat could change anything related to memory allocation, but there were two updates of dependencies (@grpc/grpc-jsandprotobufjs) and it would be very useful to see if we need to dig into the changes in either of them.weyert commentedon Apr 11, 2023
We have been having a memory leak to in one of the other google packages, probably, the
@google-cloud/pubsubpackage and after downgrading to 3.5.7 the memory disappeared. Before we were using 3.6.0alexander-fenster commentedon Apr 11, 2023
@weyert Just to confirm - no memory leak on 3.5.7 but leaking on 3.5.8, with no other changes? The only difference between them is related to the HTTP transport https://github.com/googleapis/gax-nodejs/pull/1431/files which is very unlikely to be used by
@google-cloud/pubsub.Could you share more details, preferably a repro, in a new issue since it seems not directly related to what @scottbessler describes here?
weyert commentedon Apr 11, 2023
@alexander-fenster I haven't tested 3.5.8. I will see what I can do to test the versions between 3.5.7 and 3.6.0. I can only say that there was an issue in 3.6.0 and force a downgrade to 3.5.7 resolved the issue by adding
[email protected]as main dependency of the project.I will report back as soon as possible. Now that a solution has been found for the memory leak I need to work through my backlog of tasks before I can do the above, though. I hope to be able to get back end of the week or early next week.
leahecole commentedon May 21, 2024
going to close as obsolete given that nodejs-datastore now depends on 4.0.5 or greater, but please reopen if this is an issue still.
chore: remove duplicate mocha config (#248)