This commit is contained in:
USER-20220102CG\noblelift
2023-03-31 14:08:26 +08:00
parent 7853266c53
commit 4fab46c756

View File

@@ -177,9 +177,10 @@ public class DeviceOpcProtocolRunable implements Runnable {
his = accessor_value.getValue(item.getId());
if (!ObjectUtl.isEquals(itemState.getQuality(), QualityTypeValue.OPC_QUALITY_GOOD) && his != null) {
maxResartNum ++;
log.warn("线程 {} opc 值不健康 maxResartNum:{} ", tag, maxResartNum);
log.warn("opc 值不健康 item: {}, 状态: {},当前读取值:{}, 系统内存值{} ", item.getId(), itemState.getQuality(), value, his);
}
if(maxResartNum>1000){
if(maxResartNum>10){
if (this.server != null) {
try {
this.server.disconnect();