jeho0815 created SCB-1576:

             Summary: SerivceCombServerStatus has performance problem
                 Key: SCB-1576
             Project: Apache ServiceComb
          Issue Type: Improvement
          Components: Java-Chassis
    Affects Versions: java-chassis-1.2.1
            Reporter: jeho0815
            Assignee: jeho0815

if server has many instance,  the 
ServiceCombLoadBalancerStats#getServiceCombServer iterate all the instances 
cache each invoke
public ServiceCombServer getServiceCombServer(MicroserviceInstance instance) {
 for (ServiceCombServer server : serverStatsCache.asMap().keySet()) {
 if (server.getInstance().equals(instance)) {
 return server;
 return null;

This message was sent by Atlassian Jira

Reply via email to