You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@commons.apache.org by "Bernd Eckenfels (JIRA)" <ji...@apache.org> on 2014/11/14 22:40:34 UTC

[jira] [Commented] (VFS-546) VFS very slow resolving FTP files

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

Bernd Eckenfels commented on VFS-546:
-------------------------------------

Can you pinpoint which of the operations is slow? Is it reading the stream (you dont show it in your code) or (what I suspect) the exists() method? Is the directory which contains the file filled with a lot of files?

> VFS very slow resolving FTP files
> ---------------------------------
>
>                 Key: VFS-546
>                 URL: https://issues.apache.org/jira/browse/VFS-546
>             Project: Commons VFS
>          Issue Type: Bug
>    Affects Versions: 2.0
>         Environment: Debian
>            Reporter: Sergio Fernández
>            Priority: Minor
>
> We have found a performance issue using VFS to access files via FTP. Pushing few MBs takes too long... The code is:
> {code:java}
> FileSystemManager fsmgr = VFS.getManager();
> FileObject f = fsmgr.resolveFile(path);
> if(d.exists()) {
>     return f.getContent().getOutputStream();
> }
> {code}
> With the same FTP server both using {{curl}} and a C++ implementation the same file requires few seconds.
> Could be a configuration issue, a usage issue or a bug?
> Thanks in advance.



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)