-->
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: Tomcat out of memory
PostPosted: Fri Feb 11, 2005 12:01 pm 
Newbie

Joined: Mon Jan 17, 2005 9:23 am
Posts: 15
Hi! I'm building a web app in Tomcat using Hibernate. My Hibernate session is in a threadLocal variable, so there should be one session for each thread. It seems that Tomcat threads terminate from time to time and so more and more Hibernate sessions are being created over time. Another issue is that with each undeploy / deploy cycle when debugging the memory usage of tomcat increases, until finally I get an out of memory error.

I suspect that the cause of the problem is that the old hibernate sessions are not freed from memory. How can I do that? Or is it generally a bad idea to have threadLocal hibernate session in a tomcat web application? How can I do it better?

Thanks for your answers
Bastian Voigt


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.