跑了很久的服务突然启动报错: [DUBBO] Failed to save registry store file, cause: Can not lock the registry cache file /root/.dubbo/dubbo-registry-xx.xx.xx.xx.cache, ignore and retry later, maybe multi java process use the file, please config: dubbo.registry.file=xxx.properties, dubbo version: 2.8.4, current host: xx.xx.xx.xxjava.io.IOException: Can not lock the registry cache file /root/.dubbo/dubbo-registry-xx.xx.xx.xx.cache, ignore and retry later 分析: Dubbo本地缓存服务列表默认采用的文件,会根据注册中心自动在当前用户目录下生成一个缓存文件 。
默认地址:/root/.dubbo/dubbo-registry-xx.xx.xx.xx.cache
场景:再同一台机器上最近增加了一些Dubbo服务,导致多个进程去抢占默认的这个服务列表所在文件的读写权限 。
解决: 【Dubbo异常 Can not lock the registry cache file解决方案】分出一些服务配置不同的文件地址即可:
dubbo.registry.file=/path
- 春季老年人吃什么养肝?土豆、米饭换着吃
- 三八妇女节节日祝福分享 三八妇女节节日语录
- 老人谨慎!选好你的“第三只脚”
- 校方进行了深刻的反思 青岛一大学生坠亡校方整改校规
- 脸皮厚的人长寿!有这特征的老人最长寿
- 长寿秘诀:记住这10大妙招 100%增寿
- 春季老年人心血管病高发 3条保命要诀
- 眼睛花不花要看四十八 老年人怎样延缓老花眼
- 香槟然能防治老年痴呆症? 一天三杯它人到90不痴呆
- 老人手抖的原因 为什么老人手会抖
