-->
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: does Hibernates stuff have to consume so much memory?
PostPosted: Wed Aug 10, 2005 9:08 am 
Newbie

Joined: Wed Aug 10, 2005 8:54 am
Posts: 10
i have developed JSF web application that uses Hibernate.
server machine is strong so i dont care about memory;)

now i must create its equivalent as desktop SWT app.
obviously i want to reuse Hibernate logic from web app.

but my desktop app consumes too much ram.

before that code my app consumes 20MB ram:
Code:
sessionFactory = new Configuration().configure(doc).buildSessionFactory();

and after it app consumes 35MB ram.
(that code maps abut 40 classes and about 60 collections)

doest it have to be so?
can i reduce memory consumction?
scale of my desktop app data is 100 smaller that server data so
i dont need any performance tuning - just low memoty consumction:)


cheers


Top
 Profile  
 
 Post subject:
PostPosted: Wed Aug 10, 2005 11:35 am 
Expert
Expert

Joined: Thu Sep 04, 2003 8:23 am
Posts: 368
It is weird. I have about 400 classes in my app and hibernate consumes about 10 Mo.
The best way to see who consumes your memory is to use a profiler. There is a free plugin for eclipse which does that (eclipsecolorer).
You can also grab the ea version of yourkit, for me it's the best profiler and very easy to install and to use. You'll then be able to see if it is hibernate which consumes your memory and why

_________________
Seb
(Please don't forget to give credits if you found this answer useful :)


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.