jackrabbit-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Euan Green <euangr...@gmail.com>
Subject Re: Garbage Collection not deleting until restart of server
Date Thu, 12 Nov 2009 10:50:30 GMT

>The data store keeps a list of 'recently used items' in a weak hash
>map (FileDataStore.inUse). "All data identifiers that are currently in
>use are in this set until they are garbage collected." Garbage
>collection here means Java garbage collection. That means as long as
>the identifiers are in the Java heap, the files are not deleted.

>The test cases call FileDataStore.clearInUse(), however this shouldn't
>be used for production, just for testing.

>If you want to ensure all files are deleted, an option is to call
>System.gc() a few times before running the data store garbage
>collection. 

Many thanks! 

That's exactly what it was, just run some test and the files are being
deleted now if System.gc is run before the GarbageCollection for the
repository.

Thanks for the time and effort helping!

Euan

-- 
View this message in context: http://n4.nabble.com/Garbage-Collection-not-deleting-until-restart-of-server-tp620143p620201.html
Sent from the Jackrabbit - Users mailing list archive at Nabble.com.

Mime
View raw message