hebrd opened a new issue, #11451:
URL: https://github.com/apache/dubbo/issues/11451

   如下泛化调用代码,JVM内存会不断升高,不会释放,有什么建议吗?
   `
    ApplicationConfig applicationConfig = new ApplicationConfig();
           applicationConfig.setName(applicationName);
   
           RegistryConfig registry = new RegistryConfig();
           registry.setAddress(registryAddress);
           registry.setGroup(registryGroup);
           registry.setRegister(false);
           registry.setEnableEmptyProtection(false);
   
           ReferenceConfig<GenericService> reference = new ReferenceConfig<>();
           reference.setInterface(interfaceName);
           reference.setGeneric("true");
           reference.setFilter(filters);
           reference.setRetries(0);
           reference.setRegistry(registry);
   
           GenericService srv = reference.get();
           Preconditions.checkState(srv != null, "找不到服务:" + interfaceName);
   `
   从内存快照种可以看到非常多(几百万级别)HashMap,char[],如:
   
![image](https://user-images.githubusercontent.com/93497583/216536422-78911ffe-11bd-4915-b153-e17a3131ae27.png)
   
![image](https://user-images.githubusercontent.com/93497583/216536920-25b66110-d662-46d2-8224-d200a986c73c.png)
   
   


-- 
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.

To unsubscribe, e-mail: [email protected]

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