We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
encode.json设置"encode_type": 为"WS",我输入RTSP流,sample_interval设置为2,{ "channels": [ { "channel_id": 7, "loop_num": 1, "sample_interval": 2, "source_type": "RTSP", "url": "rtsp://admin:[email protected]:554/h265/ch33/main/av_stream" } ], "engine_config_path": "../config/258/engine_group.json" } 在页面启动一个client去订阅时,发现机器内存会一直增长,关掉client端后,内存不再增长,但也不会释放;
The text was updated successfully, but these errors were encountered:
这个确认下代码是不是最新呢?我们去年就在ws里面增加了队列,按理说内存不会增长了。 近期,我们有使用WS压测过5-6天,没发现内存问题
Sorry, something went wrong.
代码是新的,队列已经加了进去;压测的时候sample_interval你们设置的多少呢? 我这边设置在4及以上时,内存增长到一定量时,就会达到平衡
sample_interval我们应该测试过1/3/5。可以尝试一下把encode element去掉再观察,这样可以确定内存增长是不是来自ws功能。我们使用的websocket代码来自开源库websocketpp,刚刚在这个仓库里搜了下,好像确实有内存泄漏相关的issue,但原作者四年未更新了。如果有ws方面的需求,可以考虑直接使用boost或者使用uWebSockets替换。
No branches or pull requests
encode.json设置"encode_type": 为"WS",我输入RTSP流,sample_interval设置为2,{
"channels": [
{
"channel_id": 7,
"loop_num": 1,
"sample_interval": 2,
"source_type": "RTSP",
"url": "rtsp://admin:[email protected]:554/h265/ch33/main/av_stream"
}
],
"engine_config_path": "../config/258/engine_group.json"
} 在页面启动一个client去订阅时,发现机器内存会一直增长,关掉client端后,内存不再增长,但也不会释放;
The text was updated successfully, but these errors were encountered: