On Tue, Feb 24, 2009 at 6:07 PM, Emmanuel Lecharny <[email protected]> wrote:
> Benjamin WATINE - Logixys wrote:
>>
>> Hi,
>>
>> I plan to use mina to transfer files between hosts. I will have to
>> transfer a lot of files, some very big (2 GB). What would be mina
>> performance on this task ?
>> I'm going to try to make a ProtocolCodecFilter for that. May be this
>> module exists already ?
>> Any hint on how to deal with big files and IoBuffer ?
>
> What about using the FtpServer project for that purpose ?
>
For very large files, I would suggest taking advantage of IoBuffers
wrapping NIO buffers that are MemMapped views of the file.  If you run
into a file that cannot be memmapped and for the case where the file
needs to be sent in chunks... I would setup a filter/codec that
progressively sends out chunks as completion events are made.

As an aside, does anyone know if Java provides for emulating MemMapped
files when the underlying OS says no (ex: certain filesystems in Linux
don't implement memmapping)
-- 
Thomas Harning Jr.

Reply via email to