-
Notifications
You must be signed in to change notification settings - Fork 62
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
bifromq direct memory leak #118
Comments
netty 内存检测日志: |
压力停止后Netty Direct Memory也不释放? |
是的,不释放。只能重启恢复 |
tcpcopy并不保证mqtt会话的完整性,所以会有warning。这个分支上(https://github.com/bifromqio/bifromq/tree/release-v3) 提交了针对这种情况的patch,你可以本地build验证下内存释放的问题是否还存在? |
Include a fix in v3.3.5, verification recommended, re-open the issue if needed. |
验证通过了。多谢多谢 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
3 个 2c4g 的 节点组成 bifromq 测试集群 test,
netty 检测日志如下:
该测试的目的是复制生产流量到线下集群,验证 bifromq 的稳定性。故障在 3.2.1 和3.3.1 都复现了。但压测工具直连 test 集群(不使用 tcpcopy)就不会报错。
由于节点异常宕机重启后 grpc serverId 变更,grpc 会找不到server,debug.log 打印如下:
tcpcopy 测试期间,test 集群 warn.log 会打印如下:
Environment
Reproducible Steps
Publicly Accessible Diagnostic Data(If Reproducible Steps are not available)
Log files downloadable link:
BifroMQ
data
downloadable link:Configuration files downloadable link:
java -Xms1500m -Xmx1500m -XX:MetaspaceSize=128m -XX:MaxMetaspaceSize=300m -XX:MaxDirectMemorySize=300m -server -XX:MaxInlineLevel=15 -Djava.awt.headless=true -XX:+UnlockExperimentalVMOptions -XX:+UnlockDiagnosticVMOptions -XX:+UseZGC -XX:ZAllocationSpikeTolerance=5 -Xlog:async -Xlog:gc:file=/data2/bifromq/bifromq-3.2.1/bin/../logs/gc-%t.log:time,tid,tags:filecount=5,filesize=50m -XX:+CrashOnOutOfMemoryError -XX:+HeapDumpOnOutOfMemoryError -XX:HeapDumpPath=/data2/bifromq/bifromq-3.2.1/bin/../logs -Dinbox_store_range_voter_count=3 -Dsetting_expire_seconds=60 -Dsetting_provide_init_value=true -DFTB_PLUGIN_CONF=/data2/bifromq/bifromq-3.2.1/bin/../conf/ftb_plugin_conf.yaml -Dio.netty.tryReflectionSetAccessible=true -Dio.netty.allocator.cacheTrimIntervalMillis=5000 --add-opens java.base/java.nio=ALL-UNNAMED -cp /data2/bifromq/bifromq-3.2.1/bin/../lib/* -DLOG_DIR=/data2/bifromq/bifromq-3.2.1/bin/../logs -DCONF_DIR=/data2/bifromq/bifromq-3.2.1/bin/../conf -DDATA_DIR=/data2/bifromq/bifromq-3.2.1/bin/../data -DBIND_ADDR=10.89.144.20 -Dlogback.configurationFile=/data2/bifromq/bifromq-3.2.1/bin/../conf/logback.xml -Dpf4j.pluginsDir=/data2/bifromq/bifromq-3.2.1/bin/../plugins com.baidu.bifromq.starter.StandaloneStarter -c /data2/bifromq/bifromq-3.2.1/bin/../conf/standalone.yml
etc
Additional context
Add any other context about the problem here.
The text was updated successfully, but these errors were encountered: