airavata-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From GitBox <...@apache.org>
Subject [GitHub] [airavata-mft] DImuthuUpe opened a new issue #23: Performance issue in parallel file metadata call invokes
Date Sun, 16 Aug 2020 07:07:26 GMT

DImuthuUpe opened a new issue #23:
URL: https://github.com/apache/airavata-mft/issues/23


   When concurrent connections are made to file metadata fetch api, response time grows exponentially
   
   `
   for (int i = 0; i < 20; i++) {
       Thread t = new Thread(new Runnable() {
           @Override
           public void run() {
               long tstartTime = System.currentTimeMillis();
               FileMetadataResponse fileResourceMetadata = client.getFileResourceMetadata(FetchResourceMetadataRequest.newBuilder()
                       .setResourceId("remote-ssh-resource2")
                       .setResourceType("SCP")
                       .setResourceToken("local-ssh-cred")
                       .setTargetAgentId("agent0")
                       .build());
               long tendTime = System.currentTimeMillis();
               System.out.println("Thread " + Thread.currentThread().getName() + " Time "
+ (tendTime - tstartTime));
           }
       }, i + "");
       t.start();
   }
   `


----------------------------------------------------------------
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:
users@infra.apache.org



Mime
View raw message