Skip to content

Dubbo 2.7.7 when i start 10 reference,it cause overflow. #9781

@vio-lin

Description

@vio-lin
  • I have searched the issues of this repository and believe that this is not a duplicate.

Environment

  • Dubbo version: 2.7.7
  • Operating System version: windows
  • Java version: jdk8

Steps to reproduce this issue

  1. find 10 server
  2. create 10 client in XML:DubboReference
  3. start client Applicaion

Pls. provide [GitHub address] to reproduce this issue.

Expected Behaviort

The Client will be started and run will.

Actual Behavior

It take too much time to start application.

private void prepareDubboConfigBeans() {
        beansOfTypeIncludingAncestors(applicationContext, ApplicationConfig.class);
        beansOfTypeIncludingAncestors(applicationContext, ModuleConfig.class);
        beansOfTypeIncludingAncestors(applicationContext, RegistryConfig.class);
        beansOfTypeIncludingAncestors(applicationContext, ProtocolConfig.class);
        beansOfTypeIncludingAncestors(applicationContext, MonitorConfig.class);
        beansOfTypeIncludingAncestors(applicationContext, ProviderConfig.class);
        beansOfTypeIncludingAncestors(applicationContext, ConsumerConfig.class);
        beansOfTypeIncludingAncestors(applicationContext, ConfigCenterBean.class);
        beansOfTypeIncludingAncestors(applicationContext, MetadataReportConfig.class);
        beansOfTypeIncludingAncestors(applicationContext, MetricsConfig.class);
        beansOfTypeIncludingAncestors(applicationContext, SslConfig.class);
    }

org.apache.dubbo.config.spring.ReferenceBean#prepareDubboConfigBeans

every ReferenceBean is a factoryBean,before It start it will
find all ApplicationConfig in SpringContext ,wich will init all factoryBean
then other ReferenceBean will be init and try to get applicationConfig again.
the application just stop

Metadata

Metadata

Assignees

No one assigned

    Labels

    type/discussionEverything related with code discussion or question

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions