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]