-->
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.  [ 2 posts ] 
Author Message
 Post subject: Memory usage of NHibernate in Windows Applications
PostPosted: Tue Jul 05, 2005 12:42 pm 
Hi,
I use NHibernate to Get a Simple Object ( say a User object with attributes Id, Name and Date Of Bearth) all things go rights,

but when I see Memory taken by the Application, it grows by many Megabytes for only a small object.

is this a correct behaviour of NHibernate ? or is beacuse I use Debug version of Dlls ?

Note I use one session (ISession) in order to have objects in cache, I tested with 10 objects.

thank you,
tj


Top
  
 
 Post subject:
PostPosted: Wed Jul 06, 2005 12:44 pm 
Contributor
Contributor

Joined: Thu May 12, 2005 9:45 am
Posts: 593
Location: nhibernate.org
So, your problem is about memory usage; not performance !?!

tj wrote:
it grows by many Megabytes for only a small object.


Are you sure that this megabytes are used by your "small object" ?

The creation of the Configuration and the SessionFactory can take a good amount of memory; and don't forget that .NET takes far more memory than native applications (at the loading)

Try to load 100 objects then 1000 and finally 10000; the memory usage should grow (almost) like native applications (that is sizeof(YourObject) * Number of instances)

_________________
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.  [ 2 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.