Skip to content
New issue

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

使用ssl连接的时候,客户端的内存使用会不断上升 #269

Open
nuomi666 opened this issue Nov 18, 2024 · 5 comments
Open

使用ssl连接的时候,客户端的内存使用会不断上升 #269

nuomi666 opened this issue Nov 18, 2024 · 5 comments

Comments

@nuomi666
Copy link

使用emqtt-bench模拟10w个客户端连接并一直发送心跳,在10w个客户端都连接成功后,保持一段时间,客户端的内存使用不断上升,会是emqtt-bench有内存泄露吗?

@zmstone
Copy link
Member

zmstone commented Nov 18, 2024

麻烦提供一下运行参数。

@nuomi666
Copy link
Author

麻烦提供一下运行参数。

mqtt_bench conn -h 10.10.0.1 -p 28019 -u test -P 123 --ssl -V 3 -k 59 --prefix 'sub-' --shortids true -n 0 -R 1000 -c 100000

@qzhuyan
Copy link
Contributor

qzhuyan commented Dec 20, 2024

you could try -l with low mem mode.

If the proceses are just doing keep alive, it is unlikely the mem get GCed and you will see it grows until reach some GC point.

@zmstone
Copy link
Member

zmstone commented Jan 7, 2025

maybe the issue has been fixed in 0.4.29: #276
please give it a try @nuomi666

@CQYou
Copy link

CQYou commented Jan 8, 2025

我在测试多并发的时候也发现了这个问题 :( emqtt_bench工具使用的内存会逐渐上升,导致我在测试长连接功能时,压测机的内存溢出导致系统崩溃.
我使用的版本是0.4.29
系统是 Ubuntu 22.04
运行命令: emqtt_bench conn -h 192.168.5.249 -c 50000 - i 10 --ifaddr 192.168.5.74
即使我使用了 -l 低内存模式 他也会逐渐上升.我只能寻找其他的工具来测试我的broker.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants