Using Jakarta commons-net - STREAM_TRANSFER_MODE  
Author Message
MellyGirl





PostPosted: 2006-8-11 21:32:00 Top

java-programmer, Using Jakarta commons-net - STREAM_TRANSFER_MODE Three years ago, I created a very simple FTP utility for a project. The
main purpose was to upload and download files between two systems. At the
time, I figured it would not be used for very long, but as you can see it is
still there. The problem I am experiencing now, is that the utility is
expected to upload thousands of files at one time. For awhile, the process
was keeping up, but it would seem that there is a problem, now.

I contacted my network group and they claim that my FTP utility is the
issue. I find it hard to believe that the code is the issue when it can
upload more files to one system MUCH faster than to the other system.
However, my problem is that I am unable to determine how "tweak" the code to
make it more efficient with how it is uploading. I found in the Jakarta
JavaDocs the definition for STREAM_TRANSFER_MODE and it is defined to upload
10 bytes at a time. I was wondering if there was a way to tune that. I
could be going way off base here, but it was only a consideration.

Thanks!