You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@commons.apache.org by Mario Ivankovits <ma...@ops.co.at> on 2005/10/02 22:04:27 UTC

Re: [vfs] Out of memory when doing getChildren() or findFiles(FileSel ector)

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.
>  
VFS utilize a cache for faster lookup on subsequent resolves.
This cache uses SoftReferences and they are freed as soon as the JVM 
gets low of memory and no-one holds a strong reference to the 
corresponding file objects.

Do you have any problems other than the amout of heap used?

---
Mario


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


Re: [vfs] Out of memory when doing getChildren() or findFiles(FileSel ector)

Posted by Mario Ivankovits <ma...@ops.co.at>.
Mario Ivankovits wrote:
> Do you have any problems other than the amout of heap used?
Ooops - sorry, your subject says you get an "out of memory".
I'll have a look at it.

---
Mario


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