srs icon indicating copy to clipboard operation
srs copied to clipboard

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

Open timfengzi opened this issue 2 years ago • 5 comments

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

timfengzi avatar Aug 29 '23 01:08 timfengzi

image

timfengzi avatar Aug 29 '23 01:08 timfengzi

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

TRANS_BY_GPT4

timfengzi avatar Sep 03 '23 14:09 timfengzi

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

TRANS_BY_GPT4

timfengzi avatar Sep 18 '23 03:09 timfengzi

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

winlinvip avatar Mar 30 '24 23:03 winlinvip