Here is the patch file corresponding to the original message I posted to
http://forum.hibernate.org/viewtopic.php?t=959404&sid=d97576ad1f1b87fea870b26ee7c860ae
Hi,
I'm using NHibernate 1.0.2.0. Over prolonged periods of heavy use I see a large memory usage from NHibernate. I've tracked it down to SessionFactoryImpl.cs.
The compiled querys and filters are stored in the softQueryCache but they never appear to be scavenged. I've tested it by replacing the softQueryCache with the System.Web.Cache and set an expiration policy and the problem dissapears.
Anyone got any idea why the softQueryCache isn't scavenged to prevent excessive memory usage over time? If not, i'll submit a JIRA issue or patch.
Thanks,
Al Priest
NH-559.