nacos cloud dubbo一直报a lot of memory and CPU cycles may be used的警告


完整错误:

Current application will subscribe all services(size:9) in registry, a lot of memory and CPU cycles may be used, thus it's strongly recommend you using the externalized property 'dubbo.cloud.subscribed-services' to specify the services

报错原因:这是个警告,提示当前应用订阅服务是缺省配置,会占用过多资源

解决:yml文件配置一下需要订阅服务

dubbo:
  cloud:
    subscribed-services: 'service1,service2'#配置订阅服务多个服务用,隔开,不配置默认订阅注册中心所有服务

 

 

 注:如果没配置订阅服务,无法进行服务间调用


免责声明!

本站转载的文章为个人学习借鉴使用,本站对版权不负任何法律责任。如果侵犯了您的隐私权益,请联系本站邮箱yoyou2525@163.com删除。



 
粤ICP备18138465号  © 2018-2025 CODEPRJ.COM