-->
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.  [ 1 post ] 
Author Message
 Post subject: Problem "Java heap space" using Hibernate DAO mode
PostPosted: Sun Jun 01, 2008 8:21 am 
Newbie

Joined: Wed Nov 22, 2006 7:56 am
Posts: 2
Hi, all. This problem is bothering me for quite a long time. Our website reports this exception "java.lang.OutOfMemoryError: Java heap space。" I've refered to much matirials and there is a solution is popularly mentioned. That is to enlarge the memorial size when starting tomcat. But it doesnot work. So I think it is the problem of my code.

i store images using blob of mysql5.0. i am not sure if it courses problems.

i use struts and hibernate. And i use hibernate synchonyzer to general POJO files, .hbm.xml files and DAO files. In action classes of Struts, i create global variables to return values to VIEWS. For Example,

Code:
  ArrayList AllUserList = new ArrayList(); 


Then i use "request" to store this varialbe. So if there are many things to return, i create a lot of ArrayList.

In Action classes, I use DAO model to operate data. I just use "_RootDAO.initial()" and donot use anything about session and tractions. I donot know if Hibernate DAO has done the job for me...

These are some potential causes i can list. Could anybody analyse for me, i donot know DAO very well...Thanks very much.[/quote]


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

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.