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

High RAM Usage; Ram Usage increase all the time #4234

Open
tausday opened this issue Nov 15, 2024 · 4 comments
Open

High RAM Usage; Ram Usage increase all the time #4234

tausday opened this issue Nov 15, 2024 · 4 comments
Labels
EnglishNative This issue is conveyed exclusively in English.

Comments

@tausday
Copy link

tausday commented Nov 15, 2024

Describe the bug
Hello i have a clear install srs from stock. After 6H runtime without Clients and Streams i have a ram Usage from21% from 2GB.
On Older test i see an idle ram usage of 23MB not 420MB like me

If i kill the prozess with pkill srs it slowly increase ram usage from 2,1%. After 1 Minute i have 3.2% in idle

2024-11-15 08_37_14-root@brave-jang_ ~

Version
SRS/7.0.20

To Reproduce
Steps to reproduce the behavior:

  1. I Start the server with: ./objs/srs -c conf/srs.conf
  2. Whaitt a time and the ram usage increase without streams and clients.

My Config looks like:

listen              1935;
max_connections     1000;
#srs_log_tank        file;
#srs_log_file        ./objs/srs.log;
daemon              on;
http_api {
    enabled         on;
    listen          1985;
}
http_server {
    enabled         on;
    listen          8080;
    dir             ./objs/nginx/html;
}
rtc_server {
    enabled on;
    listen 8000; # UDP port
    # @see https://ossrs.net/lts/zh-cn/docs/v4/doc/webrtc#config-candidate
    candidate $CANDIDATE;
}
vhost __defaultVhost__ {
    hls {
        enabled         on;
    }
    http_remux {
        enabled     on;
        mount       [vhost]/[app]/[stream].flv;
    }
    rtc {
        enabled     on;
        # @see https://ossrs.net/lts/zh-cn/docs/v4/doc/webrtc#rtmp-to-rtc
        rtmp_to_rtc off;
        # @see https://ossrs.net/lts/zh-cn/docs/v4/doc/webrtc#rtc-to-rtmp
        rtc_to_rtmp off;
    }

    play{
        gop_cache_max_frames 2500;
    }
}

Expected behavior
A clear and concise description of what you expected to happen.

Screenshots
If applicable, add screenshots to help explain your problem.

Additional context
Add any other context about the problem here.

@winlinvip winlinvip added the EnglishNative This issue is conveyed exclusively in English. label Nov 15, 2024
@tausday
Copy link
Author

tausday commented Nov 16, 2024

Hello, today i have push a test stream to osr with ffmpeg and 1 client.. now i have no clients an no users but osrs use now 50,9% of ram form 2GB

@ssysm
Copy link

ssysm commented Nov 16, 2024

There might be a memory leak with HLS components.Try disable that.

@tausday
Copy link
Author

tausday commented Nov 17, 2024

hy,

i habe changed

hls {
enabled off;

to off and restart it, no changes in ram usage

@tausday
Copy link
Author

tausday commented Nov 18, 2024

Hy I have test it from 5.0 over 6.0 to developer releases all the same

If I refresh the summary/dashboard often I can see a ram usage increase faster than I do nothing.

Maybe some log files in cache or other thinks in cache?

Any ideas. I don't can be the first who find out it :)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
EnglishNative This issue is conveyed exclusively in English.
Projects
None yet
Development

No branches or pull requests

3 participants