开发者社区 > 云原生 > 正文

dubbo monitor 异常:Can not lock the registry cache f

2017-11-01 15:40:32.070 [DubboSaveRegistryCache-thread-1hread] com.alibaba.dubbo.registry.support.AbstractRegistry.doSaveProperties(AbstractRegistry.java:221)evel com.alibaba.dubbo.registry.support.AbstractRegistry.doSaveProperties(AbstractRegistry.java:221)ogger{80} 221 - [DUBBO] Failed to save registry store file, cause: Can not lock the registry cache file /home/admin/.dubbo/dubbo-registry-mt-zookeeper-vip.cache, ignore and retry later, maybe multi java process use the file, please config: dubbo.registry.file=xxx.properties, dubbo version: 3.8.7, current host: 10.7.13.46sg java.io.IOException: Can not lock the registry cache file /home/admin/.dubbo/dubbo-registry-mt-zookeeper-vip.cache, ignore and retry later, maybe multi java process use the file, please config: ### dubbo.registry.file=xxx.properties at com.alibaba.dubbo.registry.support.AbstractRegistry.doSaveProperties(AbstractRegistry.java:193) at

com.alibaba.dubbo.registry.support.AbstractRegistry$SaveProperties.run(AbstractRegistry.java:150)

    at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145)
    at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615)
    at java.lang.Thread.run(Thread.java:744)

dubbo monitor遇到这种问题该如何解决?错误信息提示配置:dubbo.registry.file=xxx.properties,但是我本地试了之后不起效果。

原提问者GitHub用户imxig

展开
收起
大圣东游 2023-05-11 20:32:21 256 0
1 条回答
写回答
取消 提交回答
  • 这个日志一般不影响正常业务使用。

    同机器部署多个dubbo应用,通过dubbo.registry.file分别配置注册中心缓存文件保存到不同位置

    原回答者GitHub用户chickenlj

    2023-05-12 12:15:08
    赞同 展开评论 打赏

阿里云拥有国内全面的云原生产品技术以及大规模的云原生应用实践,通过全面容器化、核心技术互联网化、应用 Serverless 化三大范式,助力制造业企业高效上云,实现系统稳定、应用敏捷智能。拥抱云原生,让创新无处不在。

相关电子书

更多
Dubbo开源现状与2.7规划 立即下载
Dubbo分布式服务治理实战 立即下载
《Dubbo 3.0 前瞻》 立即下载