-->
These old forums are deprecated now and set to read-only. We are waiting for you on our new forums!
More modern, Discourse-based and with GitHub/Google/Twitter authentication built-in.

All times are UTC - 5 hours [ DST ]



Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 4 posts ] 
Author Message
 Post subject: the momery won't be relasaed!!!!
PostPosted: Mon Dec 05, 2005 1:42 am 
Newbie

Joined: Mon Dec 05, 2005 1:23 am
Posts: 2
Hello everyone!
It's a very delicate problem。
when using the Nhibernate at the server terminal of .net remoting,
every time the momery of creating the session server will decrease,
after completing the execution of session,we should shut down it in time,but the momery won't be relasaed.if the running time is very long,all the server memory will be run out.


Top
 Profile  
 
 Post subject:
PostPosted: Mon Dec 05, 2005 3:30 am 
Usually this means objects referencing your ISession (or objects referencing you objects referencing ISession, etc) are not released.

We had similar problem with asp.net application once. We had used static event (very bad idea) and every time a page handling this event was loaded it happily stayed in memory until end of time. Well, server lifetime.


Top
  
 
 Post subject: ou NO!!!
PostPosted: Tue Dec 06, 2005 10:16 pm 
Newbie

Joined: Mon Dec 05, 2005 1:23 am
Posts: 2
Frequently creating SessionFactory
will cause the memory to leak!!!!!!


Top
 Profile  
 
 Post subject: Re: ou NO!!!
PostPosted: Wed Dec 07, 2005 11:24 am 
Contributor
Contributor

Joined: Thu May 12, 2005 9:45 am
Posts: 593
Location: nhibernate.org
You should create the SessionFactory only once (at the loading of your server application)

_________________
Pierre Henri Kuaté.
Get NHibernate in Action Now!


Top
 Profile  
 
Display posts from previous:  Sort by  
Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 4 posts ] 

All times are UTC - 5 hours [ DST ]


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum

Search for:
© Copyright 2014, Red Hat Inc. All rights reserved. JBoss and Hibernate are registered trademarks and servicemarks of Red Hat, Inc.