Is there a way to to transfer the file in chunks? For example, transfer 1MB, handle that
1MB in the EJB, and then transfer the next 1MB. This would avoid having to have the entire
huge file in memory at one time.
The only other thing I can think of is to ftp the file to the server and have the server
open the file there.
By the way, most likely the file is in memory twice - once in its serialized state, and
once in its object state. Any other "copies" are probably references to the
object state. But the serialized state could use twice the memory room of the object
state.
View the original post :
http://www.jboss.org/index.html?module=bb&op=viewtopic&p=4230873#...
Reply to the post :
http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&a...