NHibernate NamedQuery Memory Leak

30 views
Skip to first unread message

spiralni

unread,
Aug 23, 2011, 12:51:42 PM8/23/11
to nhusers
Hello my friends.

I have an issue when using named queries in nhibernate. The problem is
that NHib eats all my RAM when executing this queries.

Yesterday I had an "OutOfMemoryException" my app was using +1.3Gb in
RAM!!! What a madness...

This post says it was because of a bug in the LRUMap
http://www.mail-archive.com/nhu...@googlegroups.com/msg03022.html

Well, I've revised the source code and I have this error fixed..!

When I executed the dotTrace Memory profiler I saw there were
thousands and thousands of SqlStrings...

I know it is because of the NamedQuery, because I tested my app
running the Citeria API y this dont happen..

My question is, are you aware of this memory leak??? how can I fix it?

Regards

Fabio Maulo

unread,
Aug 29, 2011, 10:55:38 AM8/29/11
to nhu...@googlegroups.com
Where is the memory-leak you have found ?
Reply all
Reply to author
Forward
0 new messages