【发布时间】:2016-03-22 15:59:33
【问题描述】:
我需要桥接两个 mqtt 代理。 第一个是 mosquitto,它在本地运行。 第二个是另一个 mosquitto 实例并远程运行。 我正在使用启用了持久性的桥接功能将消息从第一个代理转发到第二个代理。 这是我的conf:
# Bridge test
connection br-win-to-deb
bridge_insecure true
address 192.168.138.166:1883
cleansession false
clientid br-win-deb
start_type automatic
notifications false
try_private true
# Forward di tutti i messaggi con topic GATEWAY su topic AZURE
topic # out 2 GATEWAY/ AZURE/
persistence true
persistence_file Messages.db
persistence_location C:/temp/
max_queued_messages 36000000
autosave_interval 10
queue_qos0_messages true
实际上它可以工作,但是当文件 Messages.db 达到大约 1Gb 并且使用的 ram 达到大约 2gb 时,mosquitto 崩溃。 我在 Windows 7 x64 中运行 mosquitto。 消息的数量类似于 10000000,但我至少需要 36000000。 是记忆的问题吗?有限制吗? 是否存在支持如此庞大的 msg 数量的 mqtt 代理?
【问题讨论】:
标签: persistence mqtt mosquitto