Comments (7)
@dddddkkkkk 可以的,BifroMQ启动脚本会根据系统内存情况设置jvm堆内存和Direct内存,可以通过更改bifromq-start.sh中的$MEM_LIMIT参数,限制一下BifroMQ可以使用的总内存。
from bifromq.
重新部署集群后,依然不可连接。 重启服务器后,连接正常。
from bifromq.
@dddddkkkkk
第一个问题,建议启动每台服务器后,检查下error.log以及标准输出里是否有错误,有时候会因为端口被占用的问题启动失败。
第二个问题,这种用法单个mqtt连接上的吞吐看起来太大了,这样很容易会引起消息阻塞进而导致应用内存过高,容易被系统层面kill掉,建议更换一种实现方式,比如用共享订阅代替。
from bifromq.
@mafei6827 感谢回复,排查发现确实是被系统kill掉进程了。由于我需要保障消息的顺序性,因此无法采用共享订阅的模式,不知是否有其他解决方案呢。
from bifromq.
在jvm层面限制内存使用量,是否可以保障服务不被杀死呢。
from bifromq.
感谢回复,还有个问题需要请教一下,如果订阅节点需要考虑时序性,通过共享订阅方式有什么解决方案?
from bifromq.
@dddddkkkkk bifromq支持一种sub client接收时保证按单个pub client发送顺序的共享订阅(使用"$oshare"作为订阅字符串开头);不用共享订阅的话你可以在topic设计时做些分组,然后用固定的sub client分别订阅这些分组topic,只要保证分组的消息吞吐不超过单个sub client的处理能力即可。
from bifromq.
Related Issues (20)
- 单Pub单Sub 单Topic情况下的无法保障topic顺序消费 HOT 1
- LWT doesn't work when the client process is killed, in v2.1 release
- authPlugin无法进入auth(MQTT5AuthData authData) 方法
- clean session HOT 5
- Setting Provider plugin value invalid HOT 1
- 长时间运行后api-server出现java.lang.StackOverflowError in
- docker bifromq:3.0.0版本客户端无法正常接收推送消息 HOT 2
- 有否正式商用的同行嘛? HOT 1
- bifromq 性能测试系统可能阻塞在DistWorkerCoProcFactory的 ForkJoinPool HOT 1
- Dist 模块 dataEngineConfig.type 为 rocksdb 时,qos0 发送性能比 dataEngineConfig 为 memory 差很多 HOT 15
- docker bifromq:3.0.2版本集群搭建,集群模式不可用! HOT 11
- 建议在POM文件中升级lombok版本以便支持Java21的编译 HOT 1
- 集群cpu很高 HOT 12
- Bifromq Bridge HOT 1
- mqtt 集群压测导致内存溢出然后宕机 HOT 1
- 客户端订阅了2个共享组,取消订阅其中一个,竟然收不到另一个topic的消息了
- 集群运行一段时间后,warn.log 就会打印 There is no storeDescriptor for local store HOT 1
- 长时间压测后,线程wal-raft-executor-112680774442680320_0 和 basekv-range-mutator CPU高,一直降不下来 HOT 3
- 集群启动时,域名解析类型转换错误
- 请问下,如果一个topic没有订阅者,往这个上面发送消息还是会被持久化吗?(Qos1-2) HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from bifromq.