cqj335 opened a new issue, #225:
URL: https://github.com/apache/bifromq/issues/225

   
   - 使用的 BifroMQ 版本:3.3.5
   - 服务器规格配置:
   mqtt01-05共5个节点,其中
   mqtt01:16C32G,担任主节点
   mqtt02-05:8C16G,担任子节点
   
   现象
   上线运行后,mqtt01的内存和磁盘呈持续上涨趋势,持续运行一个月后磁盘占用增加了28G,内存使用增加了3G,mqtt02-04无此问题
   mqtt01磁盘趋势
   <img width="514" height="397" alt="Image" 
src="https://github.com/user-attachments/assets/ee4e3b1f-ea57-45e6-b061-f0d6ec9a6203";
 />
   
   mqtt-01内存趋势
   
   <img width="510" height="384" alt="Image" 
src="https://github.com/user-attachments/assets/3c5f3f7d-9732-4547-a6a1-87a08c204703";
 />
   
   mqtt-02-05磁盘趋势
   <img width="513" height="390" alt="Image" 
src="https://github.com/user-attachments/assets/572753b4-00ce-4538-880b-be0cfc156a06";
 />
   
   mqtt-02-05内存趋势
   
   <img width="518" height="405" alt="Image" 
src="https://github.com/user-attachments/assets/796cf508-18e9-4c1c-85e2-e1de5734aaf9";
 />
   
   分析
   dist server的rocksdb在进行compaction时存在文件泄漏问题,导致sst文件没有合理压缩释放,文件持续增长
   mqtt-01sst文件数
   
   <img width="1212" height="102" alt="Image" 
src="https://github.com/user-attachments/assets/c057195c-7e7d-4d9f-a5fa-3f526ba63b5c";
 />
   
   mqtt02-05sst文件数
   <img width="1363" height="165" alt="Image" 
src="https://github.com/user-attachments/assets/4a150394-6764-482b-8c4d-bee6e87fa950";
 />
   
   mqtt-01 、02rocksdb日志
   
   
[mqtt01-02rocksdb日志.zip](https://github.com/user-attachments/files/25039358/mqtt01-02rocksdb.zip)
   
   
   
   辅助信息
   当前实时连接数
   mqtt-01连接数只有51,主要用于共享订阅客户端处理消息,不对外设备开放连接,mqtt02-05单台机器有1.3w连接数,总5.6w连接
   
   <img width="907" height="329" alt="Image" 
src="https://github.com/user-attachments/assets/260dfc8a-b4f3-4626-9fb0-ed8c570a0f81";
 />
   
   新建连接数和断开连接数(每分钟)
   mqtt-02-05每分钟单台新建连接数为6000,断开连接数和新建连接数解决,也为6千,每分钟为2.4w的新建连接和新建断连
   
   <img width="1799" height="336" alt="Image" 
src="https://github.com/user-attachments/assets/adbb8996-dbc3-4fd7-836d-79aa9488ca8a";
 />
   
   


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to