Skip to content

Memory leak on @livekit/rtc-node #514

@us-asad

Description

@us-asad

Select which package(s) are affected

@livekit/rtc-node

Describe the bug

We discovered a memory leak with using: @livekit/rtc-node

What we tried to do:

  • connecting a new room in nodejs, waiting for 1.5min (90s), disconnecting
  • then again connecting a new room, waiting for 1.5min, disconnecting
  • then again same process....

overtime we see an increasing memory usage.

this is all we deployed to google cloud run: https://github.com/us-asad/livekit-only-connect-w-settimeout-gcp/blob/main/src/index.ts

Image

System Info

Google Cloud Run with 512Mib & 1 CPU

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions