Skip to content

[Bug]: Memory Leak #741

Open
Open
@tomekrut

Description

@tomekrut

Brief Description

Hi guys,
I see that after making dozen of calls the memory consumption keeps growing until it reaches the max container allocation and the server crashes. Ultimately the all terminate() functionality apparently does not clean up everything so there are some memory leaks.

I use Twilio functionality so one of the key elements is vocode/streaming/telephony/server/router/calls.py in there there is phone_conversation = self._from_call_config().. part and then goes deeper...

Are you able to help?

Thanks

Please let me know if you need more details.

LLM

GPT-4

Transcription Services

Microsoft Azure

Synthesis Services

Microsoft Azure

Telephony Services

Twilio

Conversation Type and Platform

No response

Steps to Reproduce

I start the TelephonyServer class for the outboud call.
The class will call - self.router.include_router(
CallsRouter(
Then the following will be called - phone_conversation = self._from_call_config(

Expected Behavior

I use

ps -p <PID> -o vsz=VirtualSize,rss=ResidentSet --no-headers

Here is the incremental memory consumption

Before the call starts - 645572 170564
After the first call - 2810048 291856
After the second call - 3407080 285516
After the third one - 3942660 292036

Screenshots

No response

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions