zrlw edited a comment on issue #8098:
URL: https://github.com/apache/dubbo/issues/8098#issuecomment-866593802


   问题1、2、3在不同dubbo版本下的测试:
   1. dubbo2.7.5版本
   
无论是在启动类加@EnableDubbo注解,还是在application.yml配置dubbo.scan.basePackages都存在问题1、2、3;两种方式启动时间都是12秒左右。
   
   2. dubbo2.7.12版本
   启动类上加@EnableDubbo注解的方式,运行正常,问题1、2、3都没有了;只是改成这种方式之后启动测试程序耗时从18秒变成了80秒,也是醉了。
   只在application.yml配置dubbo.scan.basePackages的方式还有问题1、2,而问题3没有了,启动耗时不到18秒。
   
   补充:
   启动慢的原因找到了,有1台nacos注册中心down了,up之后重新测试,两个dubbo版本每种方式各测试10次左右,情况如下。
   dubbo2.7.5版本:两种方式下启动耗时均在5~7秒之间;
   
dubbo2.7.12版本:@EnableDubbo方式下启动耗时在9~12秒之间;application.yml配置dubbo.scan.basePackages方式下启动耗时在6~10秒之间。


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

For queries about this service, please contact Infrastructure at:
[email protected]



---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to