-->
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 by Hibernate3
PostPosted: Sat Apr 07, 2007 12:42 pm 
Newbie

Joined: Thu Feb 22, 2007 3:15 am
Posts: 1
Hibernate version 3.2.2

I have problem regarding memory limits for JVM. My hosting provider limit memory for JVM under 15Mb. OutofMemoryExceptions occur often. Please let me know some methods to minimaize memory usage by hibernate. I have small database schema - 12 tables.

Thanks a lot


Top
 Profile  
 
 Post subject:
PostPosted: Tue Apr 17, 2007 5:11 am 
Regular
Regular

Joined: Mon Mar 26, 2007 12:38 am
Posts: 119
Hi,
java -Xmx15m .... !!!?? .
You can try the following
i) disable second level cache
ii) clear the session often.
You need to use them judisciously. If not, you might end up losing speed to save memory.

-------------------------------------------------------------
Rate the answer if you find it helpful


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.