[ 
https://issues.apache.org/jira/browse/VFS-835?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17709710#comment-17709710
 ] 

Mahesh edited comment on VFS-835 at 4/7/23 4:17 PM:
----------------------------------------------------

Thank you Gary, we have started facing this issue after enabling encryption on 
the shared storage network, below is our code, do you have any insight how we 
can debug to identify where most of the time is being spent? Same document can 
be downloaded quickly by using native Linux features. 

 

FileObject localFile = manager.resolveFile(localFilePath);
System.out.println("Time Taken resolveLocalFile()- " + 
(System.currentTimeMillis() - tMilli1));
tMilli1 = System.currentTimeMillis();
FileObject remoteFile = null;
remoteFile = manager.resolveFile("sftp://"; + userName + "@" + hostName + ":" + 
portno + "/" + remoteFilePath,createDefaultOptions(kkeypath, ppassphrase));
System.out.println("Time Taken resolveRemoteFile()- " + 
(System.currentTimeMillis() - tMilli1));
tMilli1 = System.currentTimeMillis();
*localFile.copyFrom(remoteFile, Selectors.SELECT_SELF);*
System.out.println("Time Taken Copy()- " + (System.currentTimeMillis() - 
tMilli1));
tMilli1 = System.currentTimeMillis();
System.out.println("File download success ");


was (Author: mahesh537):
Thank you Gary, we have started facing this issue after enabling encryption on 
the shared storage network, below is our code, do you have any insight how we 
can debug to identify where most of the time is being spent? Same document can 
be downloaded quickly by using native linux features. 

 

FileObject localFile = manager.resolveFile(localFilePath);
System.out.println("Time Taken resolveLocalFile()- " + 
(System.currentTimeMillis() - tMilli1));
tMilli1 = System.currentTimeMillis();
FileObject remoteFile = null;
remoteFile = manager.resolveFile(createConnectionString(hostName, portNo, 
userName, remoteFilePath), 
createDefaultOptions(kkeypath, ppassphrase));
System.out.println("Time Taken resolveRemoteFile()- " + 
(System.currentTimeMillis() - tMilli1));
tMilli1 = System.currentTimeMillis();
*localFile.copyFrom(remoteFile, Selectors.SELECT_SELF);*
System.out.println("Time Taken Copy()- " + (System.currentTimeMillis() - 
tMilli1));
tMilli1 = System.currentTimeMillis();
System.out.println("File download success ");

> Severe Performance Issue - FileObject.copyFrom()
> ------------------------------------------------
>
>                 Key: VFS-835
>                 URL: https://issues.apache.org/jira/browse/VFS-835
>             Project: Commons VFS
>          Issue Type: Bug
>    Affects Versions: 2.6.0
>            Reporter: Mahesh
>            Priority: Blocker
>             Fix For: 2.6.0
>
>
> We are facing severe performance with the FileObject.copyFrom() method, this 
> method is taking 28 minutes for 20 MB file, its faster for un encrypted files 
> (less than a minute), but with encryption on it is taking 28 minutes for 20 
> MB.  We don't have any way to trace further, can you help? 



--
This message was sent by Atlassian Jira
(v8.20.10#820010)

Reply via email to