Dear all,
I am using Nhibernate c#.Net. I am creating an Isession and I am using that session for the application beeing running.
When gathering data from the Isession e.g. a list of users and not saving refernces to those list, the memory slowly grows. I am even calling Session.clear() after gathering. that prevents the memory growing a bit, but not completely.
Is it recommended (mandatory) to get a new session for any operation and call close on the session after usage? Or should a new session be gathered from time to time (e.g. depending on memory usage).
Or should not be there a problem at all? Is there something I can do except calling of clear on the session?
Best regards,
Patrick
p.s. since this is general question I did not provide information such as mapping tables and Nhibernate version.
|