并发控制就是限制占用的线程池线程数。html
(1)服务端并发执行(或占用线程池线程数)不能超过10个。java
<dubbo:service interface="com.foo.BarService" executes="10" />
(2)限制到方法并发
<dubbo:service interface="com.foo.BarService"> <dubbo:method name="sayHello" executes="10" /> </dubbo:service>
(3)占用链接的请求的数不能超过10个负载均衡
<dubbo:service interface="com.foo.BarService" actives="10" />
XML 配置文件方式ide
properties 配置文件方式.net
annotation 配置方式线程
API 配置方式code