ossrs / srs-bench

SB(SRS Bench) is a set of benchmark and regression test tools, for SRS and other media servers, supports HTTP-FLV, RTMP, HLS, WebRTC and GB28181.
https://ossrs.net
MIT License
394 stars 223 forks source link

sb_rtmp_publish 推理超过300路 播放会卡 #6

Closed notedit closed 5 years ago

notedit commented 7 years ago

几种场景

一:

sb_rtmp_publish1 推 300路 sb_rtmp_publish2 推 300路

cpu 和 io 都非常低但播放卡

二:

sb_rtmp_publish1 推 1路 sb_rtmp_publish2 推 1500路 sb_rtmp_publish3 推 1500路

播放sb_rtmp_publish1 推的那一路,播放流畅,

cpu 使用30%左右

基本可以断定是 srs-bench 推多路流的时候有bug.

winlinvip commented 6 years ago

嗯,查查时间戳和sleep机制。

harleyxt commented 5 years ago

这个问题解决了吗?我遇到同样的情况

notedit commented 5 years ago

可以开很多个ffmpeg来模拟

harleyxt commented 5 years ago

可以开很多个ffmpeg来模拟 有脚本参考下吗?我自己写了个,只开启了一个ffmpeg,线程被ffmpeg打印信息阻塞了。