commons-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Mario Ivankovits <>
Subject Re: [vfs] Out of memory when doing getChildren() or findFiles(FileSel ector)
Date Thu, 13 Oct 2005 19:01:52 GMT 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.


To unsubscribe, e-mail:
For additional commands, e-mail:

View raw message