Open conanlh opened 4 days ago
您的业务上,只用SDK收video frame吗?您可以先注释掉业务处理video frame的部分,看看只接收video frame,不做处理时,随着channel创建和销毁,内存的增长情况;预期应该是增加到一定程度就会相对稳定(因为go的GC机制)。
您的业务上,只用SDK收video frame吗?您可以先注释掉业务处理video frame的部分,看看只接收video frame,不做处理时,随着channel创建和销毁,内存的增长情况;预期应该是增加到一定程度就会相对稳定(因为go的GC机制)。
感谢回答。我的项目暂时只接受video frame并进行处理。之前我有试过注释掉video frame的处理逻辑,发现内存也是随着连接的创建而增长,不知道是不是我的连接数太少,而没有增长到稳定的内存消耗,后面我再试一下注释掉业务逻辑处理video frame的逻辑看看内存情况。另外,根据你们的预期,内存大概会增长到多少后保持稳定?
release1.x的版本没有做过类似测试,不过我们一些比较大的客户都没有反馈过类似问题。
release2.x我们是做过类似测试,内存没有显著提高。如果您还在集成阶段,建议您用2.x版本。
release2.x我们是做过类似测试,内存没有显著提高。如果您还在集成阶段,建议您用2.x版本。
好的,谢谢
在使用Agora Golang Server SDK后,我的应用程序出现了内存泄漏。通过长时间运行和监控,发现内存使用量持续增长且没有释放的迹象。使用的sdk版本是release 1.3。
我的项目主要是对聊天中的视频帧进行处理,使用到了RtcConnectionEventHandler和RtcConnectionVideoFrameObserver。
我之前使用的C++ sdk进行监听,但是发现存在内存泄漏问题,我以为是自己代码内存没管理好,就换成了golang的sdk,发现还是有内存泄漏问题。 我使用pprof分析过我的项目,go端并没有发现明显的内存泄漏。 所以怀疑是不是c++端的sdk存在内存泄漏问题,或者是不是我的使用方法存在问题。 下面是我的项目内存监控截图:
下面是我的代码主要逻辑: