栏目分类:
子分类:
返回
名师互学网用户登录
快速导航关闭
当前搜索
当前分类
子分类
实用工具
热门搜索
名师互学网 > IT > 前沿技术 > 大数据 > 大数据系统

Dubbo异常 Can not lock the registry cache file解决方案

Dubbo异常 Can not lock the registry cache file解决方案

跑了很久的服务突然启动报错:
[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.xx
java.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.registry.file=/path

转载请注明:文章转载自 www.mshxw.com
本文地址:https://www.mshxw.com/it/780599.html
我们一直用心在做
关于我们 文章归档 网站地图 联系我们

版权所有 (c)2021-2022 MSHXW.COM

ICP备案号:晋ICP备2021003244-6号