Limit the number of connections accepted by the server to no more than 10 1:
<dubbo:provider protocol="dubbo" accepts="10" />
or
<dubbo:protocol name="dubbo" accepts="10" />
Limit the client service to use no more than 10 connections 2:
<dubbo:reference interface="com.foo.BarService" connections="10" />
or
<dubbo:service interface="com.foo.BarService" connections="10" />
If both <dubbo:service>
and <dubbo:reference>
are configured with connections, <dubbo:reference>
takes precedence, see: [Configuration override strategy](../../../reference- manual/config/principle/)