By default db4o uses weak references to keep track of loaded objects. These weak references need to be clean up from time to time. You can change this collection-interval.
EmbeddedConfiguration configuration = Db4oEmbedded.newConfiguration(); configuration.common().weakReferenceCollectionInterval(10*1000);