-->
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.  [ 4 posts ] 
Author Message
 Post subject: Application hangs after a few days
PostPosted: Tue Jul 31, 2007 5:37 pm 
Newbie

Joined: Sat Jun 09, 2007 12:29 pm
Posts: 19
I'm using HIbernate 3.1 in my web app. Application works ok, but if I leave it for a few days suddenly the connection can not be obtained and it constantly crashes.
Did anyone noticed something like this?

Bojan


Top
 Profile  
 
 Post subject:
PostPosted: Tue Jul 31, 2007 10:54 pm 
Beginner
Beginner

Joined: Fri Apr 22, 2005 5:58 pm
Posts: 26
This is most often caused by a leak in the connection pool. Probably at some point in your code you are not properly calling Session.close() so Hibernate doesn't know to return the Session (and underlying Connection) back to the connection pool.

Depending on the rate of connections drawn from the pool and the number of times the 'leaky' code is called, it probably takes some time for the entire pool to drain.

Just my guess with very little hard info to go on.
-Geoff


Top
 Profile  
 
 Post subject:
PostPosted: Wed Aug 01, 2007 12:01 am 
Regular
Regular

Joined: Wed Apr 25, 2007 11:44 pm
Posts: 59
if you application have huge or tremendous amount of data then check for the lazy loading


Top
 Profile  
 
 Post subject:
PostPosted: Sun Aug 05, 2007 2:12 pm 
Newbie

Joined: Sat Jun 09, 2007 12:29 pm
Posts: 19
No, no. When I start an application server, I check if everithing works ok. Works perfect.

Then I leave and return back in a few days and it doeasn't work. No one worked on the sistem exept me.

Any help appreciated.


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