I think it would be perfectly reasonable to clear the internal collections.
-----Original Message----- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Max Rydahl Andersen Sent: Monday, 26 September 2005 3:20 PM To: Emmanuel Bernard Cc: Hibernate development Subject: Re: [Hibernate] sessionfactoryimpl.close() > OTOH, this will consume some extra CPU time for nothing since the GC > will do that job anyway. is sf.close() cpu critical ? Even with a clean up it shouldn't be bad, or ? /max > > Max Rydahl Andersen wrote: > >> Hi guys, >> >> Any reason why we don't empty all the collections we are holding onto >> in the sessionfactory ? >> Are we just letting that be up to the garbage collector to handle or >> how ? :) >> >> It is not a memory leak as the garbage collector will get them when >> the user actually lets go >> of the sessionfactory (sf = null), but it could probably save us some >> forum argumenting since >> a profiler will list the sessionfactory as a leach even after >> sf.close() has been called. >> > -- -- Max Rydahl Andersen callto://max.rydahl.andersen Hibernate [EMAIL PROTECTED] http://hibernate.org JBoss Inc [EMAIL PROTECTED] http://www.jboss.com/events/jbossworld JBoss World Barcelona 10-12 October ------------------------------------------------------- SF.Net email is sponsored by: Tame your development challenges with Apache's Geronimo App Server. Download it for free - -and be entered to win a 42" plasma tv or your very own Sony(tm)PSP. Click here to play: http://sourceforge.net/geronimo.php _______________________________________________ hibernate-devel mailing list hibernate-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/hibernate-devel ------------------------------------------------------- SF.Net email is sponsored by: Tame your development challenges with Apache's Geronimo App Server. Download it for free - -and be entered to win a 42" plasma tv or your very own Sony(tm)PSP. Click here to play: http://sourceforge.net/geronimo.php _______________________________________________ hibernate-devel mailing list hibernate-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/hibernate-devel