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
I agree. Here's the link:
subject: Connections left open after exception
How do the connections get closed in Connection Pool
Get number of TCP connections
sharing connection object within methods
Need urgent help
Do I close connections from a javax.sql.DataSource?
All times are in JavaRanch time: GMT-6 in summer, GMT-7 in winter
| Powered by
Copyright © 1998-2015