Transfer Files with ICE
I'm trying to send files over network with ICE in Java.
I've defined an interface to send a file as byte-array and I'm wondering how to optimize memory usage of my program.
As far as i observed, there is a maxMessageSize property, which i set to e.g. 50MB.
If I send e.g. a file with 50 MB with ICE, I guess memory consumption of my program() increase fastly, especially when i use multithreading. Also I observed that, e.g. between two successive method invocation at the receiver the garbage collector of Java does not free the memory.
what is the best/recommended way to transfer 'large' files with ICE?