commons-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Mario Ivankovits <ma...@ops.co.at>
Subject Re: [vfs] Out of memory when doing getChildren() or findFiles(FileSel ector)
Date Thu, 13 Oct 2005 19:01:52 GMT
JWilliams@FAMILYDOLLAR.com wrote:
> This is a large directory and doing getChildren() or findFiles() even if the
> includeFile method of the selector returns false it will take 50MB of the
> heap.
>   
I tried some things, but didnt found any fault.

Which filesystem do you use? (local file, ftp, ...)

If this is a REALLY HUGE directory, then the problem can be that almost 
all used filesystem library returns the list of files in an array.
There isnt much VFS can do here then.
If this array gets too large (in bytes used) then you get the out of 
memory. The only thing you can do then is to add -Xmx256M (or whatever 
needed) to your jvm startup script.

---
Mario


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


Mime
View raw message