随笔分类 -  Dubbo

摘要:场景 尝试本地IDEA启动dubbo-admin,连接到测试环境的zookeeper,查看各微服务情况。 等了几分钟发现仍未启动成功,日志里不断打印[DUBBO] Subscribe...信息。 而成功启动应打印 Tomcat started on port(s): 7001 (http) with 阅读全文
posted @ 2021-11-30 21:40 cdfive 阅读(957) 评论(0) 推荐(0) 编辑
摘要:场景 在项目开发中我们对dubbo接口通常可以通过junit编写单页测试来进行自测,配合spring-boot-starter-test,通常是如下方式: @RunWith(SpringJUnit4ClassRunner.class) @SpringBootTest(classes = XxxApp 阅读全文
posted @ 2021-01-27 22:59 cdfive 阅读(2171) 评论(0) 推荐(0) 编辑
摘要:Dubbo常用的注册中心有Zookeeper、Nacos、Redis,目前项目中使用Zookeeper作为注册中心。 service-xxx-dubbo.xml配置如下: <dubbo:application name="${dubbo.applicationName}" /> <dubbo:reg 阅读全文
posted @ 2020-12-01 22:25 cdfive 阅读(2309) 评论(0) 推荐(0) 编辑
摘要:某个跑数据的接口日志里发现了如下日常: [ New I/O client worker #1-1:158555 ] - [ WARN ] com.alibaba.dubbo.rpc.protocol.dubbo.DecodeableRpcResult.decode(DecodeableRpcResu 阅读全文
posted @ 2020-11-28 22:09 cdfive 阅读(958) 评论(0) 推荐(0) 编辑
摘要:约定优于配置是springboot简化配置的思路,其中它提供的自动配置、基于注解配置为我们搭建项目框架带来了很大的便利。 使用springboot的项目跟仅使用spring的项目相比,少了很多xml配置文件,基于自动配置或者使用注解和配置类就可完成大多数配置。 springboot + dubbo搭 阅读全文
posted @ 2020-09-19 12:24 cdfive 阅读(3779) 评论(0) 推荐(0) 编辑
摘要:dubbo依赖,修改groupId和升级version版本号 升级为: zookeeper依赖, 升级为: 注意:其中排除掉了zookeeper,并单独引用: 修改xml文件中的xsd 修改为: 参考: http://curator.apache.org/zk compatibility.html 阅读全文
posted @ 2019-07-25 16:20 cdfive 阅读(1415) 评论(0) 推荐(0) 编辑
摘要:dubbo框架提供了filter机制的扩展点(本文基于dubbo2.6.0版本)。 扩展接口 在dubbo rpc模块下的dubbo rpc api模块下定义了Filter接口: dubbo自带的filter dubbo框架自带了22个Filter。 在dubbo rpc api模块提供了15个fi 阅读全文
posted @ 2019-01-21 17:00 cdfive 阅读(6642) 评论(0) 推荐(0) 编辑
摘要:dubbo提供在provider和consumer端,都提供了超时(timeout)和重试(retries)的参数配置。 配置方式 provider端在 中配置。 默认值 timeout默认值为1000,单位毫秒,表示超时时间是1秒; retries默认值为2,表示重试2次,加上本身调用1次,一共有 阅读全文
posted @ 2019-01-01 14:16 cdfive 阅读(8255) 评论(0) 推荐(1) 编辑
摘要:线上某dubbo服务A调用dubbo服务B的接口X方法,调用端A日志中出现了很多超时的情况,提供端B该接口X超时时间设置为60s; 查看提供端B的日志,报了很多线程池满的异常: 服务B部署了4个节点,仅1个节点有线程池满情况; 服务B的dubbo配置如下,线程池固定700个线程: 通过ps aux 阅读全文
posted @ 2018-09-19 22:46 cdfive 阅读(8569) 评论(0) 推荐(2) 编辑
摘要:2018-09-12 16:16:44 WARN [New I/O worker #1] SerializerFactory.java:652 getDeserializer - Hessian/Burlap: 'com.xxx.xxxBolt$1' is an unknown class in s 阅读全文
posted @ 2018-09-13 01:08 cdfive 阅读(2830) 评论(0) 推荐(0) 编辑

点击右上角即可分享
微信分享提示