poi-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Nick Burch <apa...@gagravarr.org>
Subject Re: potential memory issue in FileBackedDataSource (TIKA-2058)
Date Mon, 12 Sep 2016 22:46:44 GMT
On Mon, 12 Sep 2016, Allison, Timothy B. wrote:
> On TIKA-2058, Tim Barrett reported some OOM problems and posted an hprof 
> of the issue.  Luis Filipe Nassif analyzed the hprof and identified 
> POI's FileBackedDataSource as a potential source of the problem.

It could be. FileBackedDataSource does NIO mmap operations via a 
FileChannel. Sadly Sun forgot to finish that API of properly, and there's 
no explicit unmap, it happens "magically" at some later date once the file 
is closed:
http://stackoverflow.com/questions/2972986/how-to-unmap-a-file-from-memory-mapped-using-filechannel-in-java

Maybe try with the unsupported sun.misc cleaner to see if that frees the 
memory?

Nick

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@poi.apache.org
For additional commands, e-mail: dev-help@poi.apache.org


Mime
View raw message