You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@commons.apache.org by Lance Semmens <la...@swebtec.com> on 2005/12/09 10:25:58 UTC
RE: [VFS] FTP file copy hangs part 2
Ok... I've now found out that the process isn't hanging... there's just
a couple of long pauses. From the log there are 2 large gaps of time
(between 17:12 --> 17:45 and 17:45 --> 18:28). Is VFS waiting for some
reason before it does a "removeFile".
As a refresher:
Im copying a large number of files from an FTP site to another machine
on my network (UNC path) The file sizes range from 1KB to 2MB Copies
occur sequentially not simultaneously Im using IIS as the FTP server
Log:
17:04:52.570 DEBUG ServerThread: Copying
ftp://<src_server>/... to file:////<dest_server>/...
17:04:52.570 DEBUG SoftRefFilesCache: putFile:
ftp://<src_server>/
17:04:52.570 DEBUG SoftRefFilesCache: putFile:
ftp://<src_server>/...
:
:
17:12:48.207 DEBUG SoftRefFilesCache: putFile:
file:////<dest_server>/...
17:12:48.223 DEBUG SoftRefFilesCache: putFile:
file:////<dest_server>/...
17:45:10.679 DEBUG SoftRefFilesCache: removeFile:
file:////<dest_server>/...
17:45:10.679 DEBUG SoftRefFilesCache: removeFile:
file:////<dest_server>/...
17:45:10.679 DEBUG SoftRefFilesCache: removeFile:
file:////<dest_server>/...
17:45:10.679 DEBUG SoftRefFilesCache: removeFile:
file:////<dest_server>/...
17:45:10.679 DEBUG SoftRefFilesCache: removeFile:
file:////<dest_server>/...
17:45:10.679 DEBUG SoftRefFilesCache: removeFile:
file:////<dest_server>/...
18:28:58.897 DEBUG SoftRefFilesCache: removeFile:
file:////<dest_server>/...
Cheers,
Lance.
---------------------------------------------------------------------
To unsubscribe, e-mail: commons-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: commons-user-help@jakarta.apache.org
Re: [VFS] FTP file copy hangs part 2
Posted by Mario Ivankovits <ma...@ops.co.at>.
Hi Lance!
> Ok... I've now found out that the process isn't hanging... there's just
> a couple of long pauses. From the log there are 2 large gaps of time
> (between 17:12 --> 17:45 and 17:45 --> 18:28). Is VFS waiting for some
> reason before it does a "removeFile".
>
The SoftRefFilesCache removes a file from its cache if it is gargabe
collected.
So what we might see here is only a sideeffect of the hang. I cant
belive that the SoftRefFilesCache introduce these lags.
For me it looks like some sort of "Denial-Of-Service" attack prevention
(just a wild guess). Means, if you reach the maximum number of
connections per second (or whatever period) the server will delay you
until it serves you again.
Just as a test, try to sleep for a short time (say one second) after
every copy - if the lags are gone this might be the problem.
---
Mario
---------------------------------------------------------------------
To unsubscribe, e-mail: commons-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: commons-user-help@jakarta.apache.org