A friendly place for programming greenhorns!
Big Moose Saloon
Register / Login
Win a copy of
Android Security Essentials Live Lessons
this week in the
Connections left open after exception
Joined: Aug 05, 2009
Jun 09, 2010 03:08:26
I'm having an issue where
is leaving connections open after an
is thrown, it seems the finally block in the code is not being called when this happens. Is there a setting somewhere that will fix this?
Kees Jan Koster
Joined: Mar 31, 2009
Jun 10, 2010 06:43:26
Finally is being called, don't worry. You may be doing too much stuff in finally, or maybe you have a constructor that fails and leaves an object in a state that it cannot be collected properly.
Why are you seeing OOME's anyway? Resolve these first.
Java-monitor, JVM monitoring made easy
<- right here on Java Ranch
I agree. Here's the link:
subject: Connections left open after exception
Get number of TCP connections
Do I close connections from a javax.sql.DataSource?
Need urgent help
sharing connection object within methods
How do the connections get closed in Connection Pool
All times are in JavaRanch time: GMT-6 in summer, GMT-7 in winter
| Powered by
Copyright © 1998-2014