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

GB28181: After continuously streaming for several days, the memory leaks. #3788

Open
timfengzi opened this issue Aug 29, 2023 · 4 comments
Open
Assignees
Labels
GB28181 For GB28181. TransByAI Translated by AI/GPT.

Comments

@timfengzi
Copy link

timfengzi commented Aug 29, 2023

Note: Please read FAQ before file an issue, see #2716

Description

Please description your issue here

  1. SRS Version: windows 5.0.170

  2. SRS Log:

The log is normal

  1. SRS Config:

listen 1935;
max_connections 1000;
daemon off;
srs_log_tank console;

stream_caster {
enabled on;
caster gb28181;
output rtmp://127.0.0.1/live/[stream];
listen 9000;
sip {
enabled on;
listen 5060;
# @see https://ossrs.net/lts/zh-cn/docs/v5/doc/gb28181#config-candidate
candidate $CANDIDATE;
}
}

http_server {
enabled on;
listen 8099;
dir ./objs/nginx/html;
}

http_api {
enabled on;
listen 1985;
}

rtc_server {
enabled on;
listen 8000; # UDP port
# @see https://ossrs.net/lts/zh-cn/docs/v4/doc/webrtc#config-candidate
candidate $CANDIDATE;
}

srt_server {
enabled on;
listen 10080; # UDP port
maxbw 1000000000;
connect_timeout 4000;
latency 20;
peerlatency 20;
recvlatency 20;
}

vhost defaultVhost {
rtc {
enabled on;
# @see https://ossrs.net/lts/zh-cn/docs/v4/doc/webrtc#rtmp-to-rtc
rtmp_to_rtc on;
# @see https://ossrs.net/lts/zh-cn/docs/v4/doc/webrtc#rtc-to-rtmp
rtc_to_rtmp on;
}
http_remux {
enabled on;
mount [vhost]/[app]/[stream].flv;
}
hls {
enabled on;
hls_dispose 60;
hls_fragment 2;
hls_window 1800;
hls_ts_file [app]/[stream]/[seq]-[timestamp].ts;
hls_m3u8_file [app]/[stream]/[stream].m3u8;
}
http_hooks {
enabled on;
on_publish http://127.0.0.1:7071/controller/srs/onPublish;
on_unpublish http://127.0.0.1:7071/controller/srs/onUnPublish;
on_hls http://127.0.0.1:7071/controller/srs/onHls;
}
}

Replay

Please describe how to replay the bug?

Step 1: xxxxxx

xxxxxxxxxxxx
xxxxxxxxxxxx
xxxxxxxxxxxx

Step 2: xxxxxx

xxxxxxxxxxxx
xxxxxxxxxxxx
xxxxxxxxxxxx

Step 3: xxxxxx

xxxxxxxxxxxx
xxxxxxxxxxxx
xxxxxxxxxxxx

Expect

Please describe your expectation.

TRANS_BY_GPT4

@winlinvip winlinvip changed the title 持续推流几天后,内存不断在增加,无法回收 After continuously streaming for several days, the memory keeps increasing and cannot be reclaimed. Aug 29, 2023
@winlinvip winlinvip added the TransByAI Translated by AI/GPT. label Aug 29, 2023
@timfengzi
Copy link
Author

image

@timfengzi
Copy link
Author

timfengzi commented Sep 3, 2023

This issue only occurs in the Windows system, not in the Linux system.

TRANS_BY_GPT4

@timfengzi
Copy link
Author

timfengzi commented Sep 18, 2023

Tested for a week, it seems to be a problem with gb28181

TRANS_BY_GPT4

@winlinvip winlinvip changed the title After continuously streaming for several days, the memory keeps increasing and cannot be reclaimed. GB28181: After continuously streaming for several days, the memory leaks. Mar 30, 2024
@winlinvip winlinvip self-assigned this Mar 30, 2024
@winlinvip winlinvip added the GB28181 For GB28181. label Mar 30, 2024
@winlinvip
Copy link
Member

Seems memory leak on GB28181, which should be reproduced by a long time running.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
GB28181 For GB28181. TransByAI Translated by AI/GPT.
Projects
None yet
Development

No branches or pull requests

2 participants