Our application is uploading files ranging from 2 KB - 15 KB in size and it needs to upload 800,000 - 1,000,000 of them within a single FTP session.
The application gets through about 30,000 of these files then the application gets an java.lang.OutOfMemoryError.
The relevant snippet of code is invoking the FTPClient.put(String localPath, String remotefile, boolean append) method, and possibly calling the mkdir method, if the remote path does not exist.
Given that we are uploading that many files, what is the recommended put method that needs to be invoked? Is there any advantage to using the FTPClient.put(InputStream srcStream, String remoteFile) method?
Thank you
-jeff