Manning's Countdown to 2014
. Use discount code crdotd14 all month for 50% off every deal.
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
Get number of TCP connections
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?
All times are in JavaRanch time: GMT-6 in summer, GMT-7 in winter
| Powered by
Copyright © 1998-2013