apache / dubbo

The java implementation of Apache Dubbo. An RPC and microservice framework.
https://dubbo.apache.org/
Apache License 2.0
40.52k stars 26.43k forks source link

performance issue #6220

Closed iamforrest closed 3 years ago

iamforrest commented 4 years ago

I have one provider, one consumer and one zookeeper and one monitor deployed. I start a performance test on them, but it dose not look good. (see attached image). Is it possible that I don't configure correctly?

Environment

Steps to reproduce this issue

  1. deploy one provider, one consumer, one zookeeper, one monitor
  2. consumer serves as restful api, which invoke the provider methods by dubbo
  3. launch 3000 requests to the restful api
  4. performance result is not good

configuration

provider

    <dubbo:monitor protocol="registry" />  
    <dubbo:registry protocol="zookeeper" address="${zookeeper.host}" client="curator" file="dubbo.cache"/>  
<dubbo:application name="foo-provider">  
        <dubbo:parameter key="qos.enable" value="false"/>  
    </dubbo:application>  
    <dubbo:protocol name="dubbo" id="dubbo-protocol" port="-1" threadpool="fixed" threads="500"/>  
    <dubbo:service interface="foo.Api" ref="dubboApiImpl" retries="5"
                   timeout="10000" protocol="dubbo-protocol"/>  
  ...  

consumer

  <dubbo:monitor protocol="registry" />  
    <dubbo:registry protocol="zookeeper" address="${zookeeper.host}" client="curator" file="dubbo.cache"/>  
  <dubbo:application name="foo-consumer"/>  
  <dubbo:reference id="dubboApi" interface="foo.Api" check="false"
                     connections="500"/>  
 ...  

Expected Result

I expect that there should NOT be so much difference between consumer side and provider side in both elapsed time and concurrent count.

Actual Result

image

CrazyHZM commented 3 years ago

Try it with the latest version, if you still have problems, you can reopen the issue