directory-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Johannes Zillmann <jz8_b...@yahoo.de>
Subject Re: [MINA] OutOfMemoryError on streaming large files
Date Tue, 13 Dec 2005 09:40:23 GMT
Thank you both for your efforts!

if tried the join() in the filter:

WriteRequest thisWrite=new WriteRequest(buffer,
writeRequest.getFuture());
            nextFilter.filterWrite(session,
thisWrite);
            thisWrite.getFuture().join();

and it changes nothing.
But not so suprising.
Even if i wait 5 seconds after every written MB the
exceptions raises on 65 MB.
I watch the newly written file, and it rise with  
almost identical speed as the write filter
writes(thanks to the sleep method).
So when the exception raise with write filter output
'write:65011712' the written file is already at
65.011.712 Bytes.

In evening i will try code with seperate vm's and
shift write code from filter to session.write()... 

then i will call you back! ;)
Johannes



	

	
		
___________________________________________________________ 
Telefonate ohne weitere Kosten vom PC zum PC: http://messenger.yahoo.de

Mime
View raw message