I actually tried to get files of size 30 mb repeatedly (10 files) within a span of 5 hrs. I found that all the files are transfered properly but my applications seems to run out of memory.
The file is a log file which keeps rotating rapidly, so i retrieve the same file in a routine.
The code actually looks like this.
FTPClient ftp = new FTPClient(hostName);
ftp.login(user, password);
ftp.setConnectMode(FTPConnectMode.PASV);
ftp.setType(FTPTransferType.ASCII);
try{
ftp.get(localFile,file);
} catch (Exception e) {
e.printStackTrace();
}
ftp.quit();
Do anyone have a similar problem If so how to find a remedy for it ?
regards,
vinothk