History | Log In     View a printable version of the current page.  
Issue Details (XML | Word | Printable)

Key: NH-604
Type: Patch Patch
Status: Closed Closed
Resolution: Fixed
Priority: Major Major
Assignee: Unassigned
Reporter: Al Priest
Votes: 0
Watchers: 2
Operations

If you were logged in you would be able to see more operations.
NHibernate

Excessive memory consumption bug with heavy HQL usage

Created: 15/May/06 09:31 AM   Updated: 22/Jan/07 10:48 AM
Component/s: Core
Affects Version/s: 1.0.2
Fix Version/s: 1.2.0.Beta1, 1.0.3

File Attachments: 1. Text File patch.txt (1 kb)

Issue Links:
Related
 


 Description  « Hide
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

 All   Comments   Change History      Sort Order: Ascending order - Click to sort in descending order
Al Priest - 16/May/06 02:57 AM
This bug may also be the cause of the JIRA issue NH-559.

Sergey Koshcheyev - 16/May/06 03:03 AM
Yes, probably. Thanks for the information.