-->
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.  [ 3 posts ] 
Author Message
 Post subject: OutOfMemoryError..., please help
PostPosted: Tue May 31, 2005 2:01 am 
Regular
Regular

Joined: Fri Feb 25, 2005 3:02 am
Posts: 71
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


Top
 Profile  
 
 Post subject:
PostPosted: Tue May 31, 2005 3:59 am 
Expert
Expert

Joined: Sat Oct 25, 2003 8:49 am
Posts: 490
Location: Vrhnika, Slovenia
Read this, if it is any help:
- http://blog.hibernate.org/cgi-bin/blosxom.cgi/2004/08/


Top
 Profile  
 
 Post subject:
PostPosted: Wed Sep 28, 2005 6:12 am 
Newbie

Joined: Wed Sep 28, 2005 5:47 am
Posts: 1
Location: Spain
I don't know the platform in which your tomcat is running.

But i'm having the same problem on windows 2000.

I think i've solved it by running the JVM in client mode instead of server mode (there are 2 different versions of the jvm.dll file).

I'm still testing ...

[Sorry if my english is not quite good]


Top
 Profile  
 
Display posts from previous:  Sort by  
Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 3 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.