Need help with Hibernate? Read this first:
http://www.hibernate.org/ForumMailingli ... AskForHelp
[b]Hibernate version:3.0[/b]
[b]Mapping documents:[/b]
[b]Code between sessionFactory.openSession() and session.close():[/b]
[b]Full stack trace of any exception that occurs:[/b]
[b]Name and version of the database you are using:postgresql 8.0[/b]
[b]The generated SQL (show_sql=true):[/b]
[b]Debug level Hibernate log excerpt:[/b]
Hi, am using Hib. in a non-managed env. i.e with Tomcat. Am also using the Utility class HibernateUtil.java to obtain and close a session. My problem is that each time I call my jsp page in tomcat, I found that the memory usage continues to increase until I got an outOfMemoryError in Tomcat log, where everything freezes. I can't access my application anymore. I need to restart Tomcat. Some of the jsp page that I call do a retrieve from the db, others do an insert/update/delete in the db. I think that Hibernate does not do the caching as it should.
Note: I call the function HibernateUtil.closeSession() at the end of each my of my jsp page instead at the end of each method in my classes.
Can anyone please help me solve my problem.
thanks in advance