首页  

dubbo性能相关参数     所属分类 dubbo 浏览量 1283
消费端  连接数 重试次数 超时
默认只建立一条连接

服务端  线程数


<dubbo:reference id="helloService" interface="dyyx.HelloService" group="${dubbo.group}" 
timeout="500" connections="3" retries="0"/>


<dubbo:protocol name="dubbo" port="${dubbo.port}"  threads="10" />



retries="0"  不重试   只调用一次
Tried 1 times of the providers

retries="2"  重试2次    最多调用3次  默认
Tried 3 times of the providers


com.alibaba.dubbo.rpc.RpcException: Failed to invoke the method echo in the service dyyx.HelloService. Tried 3 times of the providers [10.57.240.29:20880] (1/1) from the registry 127.0.0.1:2181 on the consumer 10.57.240.29 using the dubbo version 2.8.4. Last error is: Invoke remote method timeout.

threads 业务线程池核心线程数  默认 200  ,固定大小
任务队列 默认 SynchronousQueue

queues  配置之后 使用LinkedBlockingQueue
一般不要配置,线程池满直接失败

iothreads IO线程池(worker)的线程数量,默认值 CPU个数+1 
因为这个线程的工作内容比较简单,一般情况不用配置   
默认  CacheThreadPool 线程空闲时间一分钟

上一篇     下一篇
eclipse使用问题

eclipse优化

dubbo配置优先级

netty实战笔记

netty中的future和promise

netty耗时任务处理