【NodeRed】MCProtocol 组件中MaxListenersExceededWarning 告警

【NodeRed】MCProtocol 组件的MaxListenersExceededWarning 告警

问题

在NodeRed 中采用MCProtocol ,以MC协议进行PLC的信息读写,但在同一个NodeRed 端口下,多窗口设置多个MCProtocol 系列组件,会进行告警:

(node:30132) MaxListenersExceededWarning: Possible EventEmitter memory leak detected. 11 error listeners added to [MCProtocol]. Use emitter.setMaxListeners() to increase limit
(Use node --trace-warnings ... to show where the warning was created)在这里插入图片描述

刚开始告警时,由于不影响使用就没有管。但是运行较长时间后,出现了信息读写出错的问题,重新启动后又恢复正常。针对这个情况,对告警进行解决。

解析

首先,对告警进行翻译,大致意思就是MC事件监听器使用超了,那问题就定位到了MC模块。然后&#

猜你喜欢

转载自blog.csdn.net/weixin_48618536/article/details/142365033