Skip to content

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

Open
@timfengzi

Description

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

Metadata

Assignees

Labels

GB28181For GB28181.TransByAITranslated by AI/GPT.

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions