[go: up one dir, main page]

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

Memory utilization remain high after a long streaming time #6341

Closed
sst5000 opened this issue May 20, 2024 · 19 comments
Closed

Memory utilization remain high after a long streaming time #6341

sst5000 opened this issue May 20, 2024 · 19 comments
Assignees

Comments

@sst5000
Copy link
sst5000 commented May 20, 2024

Short description

After running a few publishers on the AMS server for a long time memory utilization remains high.

Environment

  • Operating system and version:Ubuntu 20.04

  • Java version: openjdk version "17.0.10" 2024-01-16
    OpenJDK Runtime Environment (build 17.0.10+7-Ubuntu-120.04.1)
    OpenJDK 64-Bit Server VM (build 17.0.10+7-Ubuntu-120.04.1, mixed mode, sharing)

  • Ant Media Server version: Enterprise Edition 2.9.0 20240405_1755

  • Browser name and version: Chrome Version 124.0.6367.209 (Official Build) (64-bit)

Steps to reproduce

  1. Run a few publishers and players on a single instance of the AMS
  2. Keep it running for one day
  3. After that remove some publisher from it.

Expected behavior

The memory utilized should drop to some level

Actual behavior

The memory utilization will go high so some value (suppose 55%). It will remain at 55% if we remove the publisher or viewer.

Logs

Place logs on pastebin or elsewhere and put links here

Ask your questions on Ant Media Github Discussions

@lastpeony
Copy link
Contributor

Have you ever faced with a crash due to this?

@brixxnatt
Copy link

I confirm this too

@sst5000
Copy link
Author
sst5000 commented May 26, 2024 via email

@brixxnatt
Copy link

Yes when the erros accumilate and add to the RAM , in 3 days my rams will be 100% , server will crash , cant use it , so now i am restarting the server each 2 days , this is HELL

@brixxnatt
Copy link

JVM Heap Memory stay the same
System CPU Load stay the same
System Memory Accumilating up 100 mb each 30 seconds

@lastpeony
Copy link
Contributor

Hello @sst5000 do you publish with webrtc, rtmp or srt?

@sst5000
Copy link
Author
sst5000 commented May 31, 2024 via email

@lastpeony
Copy link
Contributor
lastpeony commented Jun 3, 2024

@sst5000 Hello,
I am trying to reproduce this problem on my end to see if there is a memory leak on our end but i could not manage to reproduce.
Here is the behaviour i observed:
1-)Suppose you publish10 webrtc streams and you observed 1GB increase in system memory.
2-)Stop all streams. You wont observe a 1GB decrease in system memory. You should observe decrease in JVM heap memory.
3-) When you restart 10 webrtc streams again, you should not observe 1GB increase in system memory. The previous allocation will be utilized.
If this is the behaviour you observe its normal and expected behaviour.
If you observe 1GB increase in step 3, then its a problem and we need to connect and check it together.
If thats the case letst schedule a meeting and observe the behaviour together. emre.guney@antmedia.io

@burak-58 burak-58 moved this from 🔖 Sprint to After sprint in Ant Media Server Jun 3, 2024
@sst5000
Copy link
Author
sst5000 commented Jun 4, 2024 via email

@lastpeony
Copy link
Contributor
lastpeony commented Jun 4, 2024

@sst5000
I scheduled a meeting to check it together with you for 5.06.2024 9 AM GMT+3
Check Webrtc Memory
Wednesday, June 5 · 9:00 – 10:00am
Time zone: Europe/Istanbul
Google Meet joining info
Video call link: https://meet.google.com/zvc-wfjk-dvp
Or dial: ‪(TH) +66 2 844 9331‬ PIN: ‪575 501 085 9821‬#
More phone numbers: https://tel.meet/zvc-wfjk-dvp?pin=5755010859821

Please send me your e mail, if time does not fit you we can schedule again.

@lastpeony
Copy link
Contributor

@sst5000
You can directly e mail me for this.
emre.guney@antmedia.io

@sst5000
Copy link
Author
sst5000 commented Jun 6, 2024 via email

@lastpeony
Copy link
Contributor

Hi, Thank you for taking time out for this. Unfortunately, I wasn't able to attend. Please reschedule it for 7th Jun 2024. 9:00 – 10:00 am Time zone: Europe/Istanbul I will be there.

On Tue, Jun 4, 2024 at 3:02 PM Last Peony @.> wrote: @sst5000 https://github.com/sst5000 I scheduled a meeting to check it together with you for 5.06.2024 9 AM GMT+3 Check Webrtc Memory Wednesday, June 5 · 9:00 – 10:00am Time zone: Europe/Istanbul Google Meet joining info Video call link: https://meet.google.com/zvc-wfjk-dvp Or dial: ‪(TH) +66 2 844 9331‬ PIN: ‪575 501 085 9821‬# More phone numbers: https://tel.meet/zvc-wfjk-dvp?pin=5755010859821 Please send me your e mail, if time does not fit you we can schedule again. — Reply to this email directly, view it on GitHub <#6341 (comment)>, or unsubscribe https://github.com/notifications/unsubscribe-auth/AUTILNYFA4IST2AKPQ53JO3ZFWCUTAVCNFSM6AAAAABH7QBMP6VHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDCNBXGA2TQOBVGQ . You are receiving this because you were mentioned.Message ID: @.>
-- Regards, Shivani @ http://sst5000.blogspot.in/ http://sst5000.wordpress.com

Can you schedule a meeting through this link?
https://calendly.com/lastpeony

@sst5000
Copy link
Author
sst5000 commented Jun 27, 2024 via email

@burak-58 burak-58 moved this from After sprint to 🏗 In progress in Ant Media Server Jul 15, 2024
@muratugureminoglu
Copy link
Collaborator
Agent Amarnath Thodupunoori linked Freshdesk ticket 128488 for this issue.

@muratugureminoglu

This comment was marked as off-topic.

@muratugureminoglu
Copy link
Collaborator
Agent Alper KIZILTOPRAK created comment.

Email Tracking Email reading has been tracked by Email Tracking app
<div class="mail-track-note-header">
        Email was read
    2 minutes after it was sent
✉ Sent on 17:00:55 13 August 2024 +02:00
<div>✔ Read on 17:02:55 13 August 2024 +02:00</div>

</div>

@burak-58 burak-58 moved this from 🏗 In progress to Next Sprint in Ant Media Server Sep 23, 2024
@burak-58 burak-58 assigned burak-58 and unassigned lastpeony Sep 30, 2024
@burak-58
Copy link
Contributor
burak-58 commented Oct 7, 2024

For a similar and reproducible one we have this issue.

@burak-58 burak-58 closed this as completed Oct 7, 2024
@github-project-automation github-project-automation bot moved this from 🔖 Sprint to ✅ Done in Ant Media Server Oct 7, 2024
@muratugureminoglu
Copy link
Collaborator
Agent Amarnath Thodupunoori unlinked Freshdesk ticket 128488 from this issue.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Status: Done
Development

No branches or pull requests

6 participants