Skip to content

@grpc/grpc-js has memory leak issue with latest version #2448

@alanzhao

Description

@alanzhao

Problem description

We use spanner node js for our api, and the latest grpc-js 1.8.14 has memory leak issues, same as 1.8.13.

Reproduction steps

We use spanner node library for our api. We recently upgraded to node 18. so in package-lock json, grpc-js gets upgraded to 1.18.14. Before upgrade, we were not having the memory leak issue. After upgrade, we have a slow memory leak, manifested in 4-7 days. And our pods restarted due to low memory.

Our stop gap solution is to downgrade @grpc/grpc-js to 1.6.2 and that seems to fix the issue.
Thanks for looking into this. Much appreciated.

Environment

  • x86_64 Linux
  • 18.15
  • nvm
  • @grpc/grpc-js@1.8.14
  • @google-cloud/spanner@5.18.0

Additional context

We have about 100 pods in prod, and all of them exhibit the symptom after the library gets updated.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions