Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Bug]: Memory Leak #741

Open
tomekrut opened this issue Jan 20, 2025 · 0 comments
Open

[Bug]: Memory Leak #741

tomekrut opened this issue Jan 20, 2025 · 0 comments
Labels
bug Something isn't working

Comments

@tomekrut
Copy link

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

@tomekrut tomekrut added the bug Something isn't working label Jan 20, 2025
@tomekrut tomekrut changed the title [Bug]: [Bug]: Memory Leak Jan 23, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant