A friendly place for programming greenhorns!
Big Moose Saloon
Register / Login
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
Don't get me started about those stupid
subject: Connections left open after exception
Need urgent help
How do the connections get closed in Connection Pool
sharing connection object within methods
Do I close connections from a javax.sql.DataSource?
Get number of TCP connections
All times are in JavaRanch time: GMT-6 in summer, GMT-7 in winter
| Powered by
Copyright © 1998-2014