75 Star 467 Fork 160

smartboot / smart-mqtt

 / 详情

加入smart-mqtt的朋友圈

待办的
拥有者
创建于  
2022-04-16 17:58

若二维码过期,可留言反馈,我们将在第一时间更新。

输入图片说明

评论 (27)

三刀 创建了任务
三刀 修改了描述
三刀 置顶等级设置为
三刀 修改了描述
三刀 修改了描述
展开全部操作日志

已更新

三刀 修改了描述

已更新

三刀 修改了描述

二维码访问不了了

已更新

三刀 修改了描述
三刀 修改了描述
三刀 修改了描述
三刀 修改了描述

实测会掉线。(1)发送过信息时,约3分钟出现:已断开连接,无法发送消息。(2)仅连接未发送消息时,服务器端不会出现任何提示,但客户端无法发送消息,点击发送提示连接已断开。

换成mqtt-spy没有出现三分钟掉连接的情况,看来MQTTX是有点问题。

我平常也是用mqttx的,小问题不少。

测试环境及测试工具,单机本地启运Bootstrap,测试工具为第三方MQTT客户端 MQTTX(keeplive=60s,协议为3.1.1)
smart-socket server started on port 1883,threadNum:16
smart-socket server config is IoServerConfig{readBufferSize=4096, writeBufferSize=128, writeBufferCapacity=16, host='null', monitor=org.smartboot.mqtt.broker.MqttBrokerMessageProcessor@3f8f9dd6, port=1883, backlog=1000, processor=org.smartboot.mqtt.broker.MqttBrokerMessageProcessor@3f8f9dd6, protocol=org.smartboot.mqtt.common.protocol.MqttProtocol@aec6354, bannerEnabled=false, socketOptions=null, threadNum=16, bufferFactory=org.smartboot.socket.buffer.BufferFactory$$Lambda$8/1299641336@1c655221, aioEnhance=true}

                           _                         _    _       _                  _                  
                          ( )_                      ( )_ ( )_    ( )                ( )                 

___ ___ ___ _ _ _ __ | ,) ___ ___ _ _ | ,)| ,) | | _ __ _ | |/') __ _ __
/',)/' _ _\ /')( '__)| | /' _ _ \ /'_ )| | | | | '\ ( '__)/'_\ | , < /'\( '__) \__, \| ( ) ( ) |( (_| || | | |_ | ( ) ( ) |( (_) || |_ | |_ | |_) )| | ( (_) )| |\\ ( /| |
(
/() () ()\__,_)(_) _) () () ()\__, |_)\__) (_,__/'(_) ___/'() ()`_)()
| |
(
)
:: smart-mqtt broker:: (v0.7)
❤️Gitee: https://gitee.com/smartboot/smart-mqtt
Github: https://github.com/smartboot/smart-mqtt
🎉start smart-mqtt success! [port:1883]
messageType:CONNECT
[2022-10-24 21:48:26] [smart-socket:Thread-1] INFO ConfiguredAuthenticationServiceImpl - auth success, ip:activate.navicat.com clientId: null, username: brokerusername
messageType:SUBSCRIBE
messageType:PUBLISH
dosav_playload:{
"msg": "hello"
}
BrokerTopic:test1
[2022-10-24 21:49:08] [Quick Timer] INFO MonitorPlugin -
-----60seconds ----
inflow: 1.02996826171875E-4(MB)
outflow: 8.58306884765625E-6(MB)
process fail: 0
process count: 3
process total: 3
read count: 4 write count: 2
connect count: 1
disconnect count: 0
online count: 1
connected total: 1
Requests/sec: 0.05
Transfer/sec: 1.71661376953125E-6(MB)
messageType:PINGREQ
MqttPingReqMessage——1:
[2022-10-24 21:50:08] [Quick Timer] INFO MonitorPlugin -
-----60seconds ----
inflow: 1.9073486328125E-6(MB)
outflow: 1.9073486328125E-6(MB)
process fail: 0
process count: 1
process total: 4
read count: 1 write count: 1
connect count: 0
disconnect count: 0
online count: 1
connected total: 1
Requests/sec: 0.016666666666666666
Transfer/sec: 3.178914388020833E-8(MB)
messageType:PINGREQ
MqttPingReqMessage——1:
[2022-10-24 21:50:32] [smart-socket:Thread-1] WARN MqttBrokerMessageProcessor - process exception
org.smartboot.mqtt.common.exception.MqttProcessException: 已断开连接,无法发送消息:org.smartboot.mqtt.broker.MqttSession@75ed0a78
org.smartboot.mqtt.common.exception.MqttProcessException: 已断开连接,无法发送消息:org.smartboot.mqtt.broker.MqttSession@75ed0a78
messageType:CONNECT
[2022-10-24 21:51:05] [smart-socket:Thread-2] INFO ConfiguredAuthenticationServiceImpl - auth success, ip:activate.navicat.com clientId: null, username: brokerusername
messageType:SUBSCRIBE
[2022-10-24 21:51:08] [Quick Timer] INFO MonitorPlugin -
-----60seconds ----
inflow: 7.724761962890625E-5(MB)
outflow: 8.58306884765625E-6(MB)
process fail: 1
process count: 3
process total: 7
read count: 3 write count: 2
connect count: 1
disconnect count: 1
online count: 1
connected total: 2
Requests/sec: 0.05
Transfer/sec: 1.2874603271484376E-6(MB)
[2022-10-24 21:52:08] [Quick Timer] INFO MonitorPlugin -
-----60seconds ----
inflow: 0.0(MB)
outflow: 0.0(MB)
process fail: 0
process count: 0
process total: 7
read count: 0 write count: 0
connect count: 0
disconnect count: 1
online count: 0
connected total: 2
Requests/sec: 0.0
Transfer/sec: 0.0(MB)
[2022-10-24 21:53:08] [Quick Timer] INFO MonitorPlugin -
-----60seconds ----
inflow: 0.0(MB)
outflow: 0.0(MB)
process fail: 0
process count: 0
process total: 7
read count: 0 write count: 0
connect count: 0
disconnect count: 0
online count: 0
connected total: 2
Requests/sec: 0.0
Transfer/sec: 0.0(MB)
[2022-10-24 21:54:08] [Quick Timer] INFO MonitorPlugin -
-----60seconds ----
inflow: 0.0(MB)
outflow: 0.0(MB)
process fail: 0
process count: 0
process total: 7
read count: 0 write count: 0
connect count: 0
disconnect count: 0
online count: 0
connected total: 2
Requests/sec: 0.0
Transfer/sec: 0.0(MB)
messageType:CONNECT
[2022-10-24 21:54:22] [smart-socket:Thread-3] INFO ConfiguredAuthenticationServiceImpl - auth success, ip:activate.navicat.com clientId: null, username: brokerusername
messageType:SUBSCRIBE
[2022-10-24 21:55:08] [Quick Timer] INFO MonitorPlugin -
-----60seconds ----
inflow: 7.534027099609375E-5(MB)
outflow: 8.58306884765625E-6(MB)
process fail: 0
process count: 2
process total: 9
read count: 3 write count: 2
connect count: 1
disconnect count: 0
online count: 1
connected total: 3
Requests/sec: 0.03333333333333333
Transfer/sec: 1.2556711832682292E-6(MB)
[2022-10-24 21:56:08] [Quick Timer] INFO MonitorPlugin -
-----60seconds ----
inflow: 0.0(MB)
outflow: 0.0(MB)
process fail: 0
process count: 0
process total: 9
read count: 0 write count: 0
connect count: 0
disconnect count: 1
online count: 0
connected total: 3
Requests/sec: 0.0
Transfer/sec: 0.0(MB)
[2022-10-24 21:57:08] [Quick Timer] INFO MonitorPlugin -
-----60seconds ----
inflow: 0.0(MB)
outflow: 0.0(MB)
process fail: 0
process count: 0
process total: 9
read count: 0 write count: 0
connect count: 0
disconnect count: 0
online count: 0
connected total: 3
Requests/sec: 0.0
Transfer/sec: 0.0(MB)
[2022-10-24 21:58:08] [Quick Timer] INFO MonitorPlugin -
-----60seconds ----
inflow: 0.0(MB)
outflow: 0.0(MB)
process fail: 0
process count: 0
process total: 9
read count: 0 write count: 0
connect count: 0
disconnect count: 0
online count: 0
connected total: 3
Requests/sec: 0.0
Transfer/sec: 0.0(MB)
[2022-10-24 21:59:08] [Quick Timer] INFO MonitorPlugin -
-----60seconds ----
inflow: 0.0(MB)
outflow: 0.0(MB)
process fail: 0
process count: 0
process total: 9
read count: 0 write count: 0
connect count: 0
disconnect count: 0
online count: 0
connected total: 3
Requests/sec: 0.0
Transfer/sec: 0.0(MB)

长时间没有收到消息会触发断连的,通常会用ping消息来keepalive

三刀 修改了描述
三刀 修改了描述

过期咯,进不了群了

已更新

三刀 修改了描述
三刀 修改了描述

过期了二维码 麻烦更新下~

已更新

三刀 修改了描述

已更新

三刀 修改了描述

已更新

三刀 修改了描述

已更新

三刀 修改了描述
三刀 修改了描述

已更新

三刀 修改了描述
三刀 修改了描述
三刀 修改了描述

已更新

三刀 修改了描述

已更新

三刀 修改了描述

登录 后才可以发表评论

状态
负责人
里程碑
Pull Requests
关联的 Pull Requests 被合并后可能会关闭此 issue
分支
开始日期   -   截止日期
-
置顶选项
优先级
参与者(13)
351975 smartdms 1578921064 9455842 shuyu404 1674026440 737609 git.jingjing.com 1681888910 8260962 wangeeej 1629708674 6519173 winsonhuang 1685458515 507086 nian8 1578926016
加载更多
Java
1
https://gitee.com/smartboot/smart-mqtt.git
git@gitee.com:smartboot/smart-mqtt.git
smartboot
smart-mqtt
smart-mqtt

搜索帮助