Hi,
Relevant details:
Database = Sql SErver 2000, developer edition
Driver = TwFreeTds_1.3.jar
Application server = Jboss 3.2.1
Hibernate 2.0.x deplyed as a SAR
Since this morning, based on your hint the driver might be the problem, I have developed a workaround as follows:
(1) I no longer close the connection, but only the ResultSet, statement and Hibernate session. Hibernate seems to have a slight bug, whereby closing connections in the hibernate connection pool really closes them, instead of just returning them to the pool for reuse! This didn't eliminate thread death, but it did slow down the rate at which the JVM suffocated.
Code snippet after change (1):
} finally
{
try
{
aResultSet.close();
aSqlStatement.close();
//aConnection.close(); Commented out 'cause problem.
aSession.close();
} catch (Exception e)
{ /* silent */ }
} //end finally
(2) More importantly I have changed to the driver jtds-0.6.jar. In addition to eliminating thread death it is a massively quicker driver and also true open source.
Thanks for ideas, Eliot
drj wrote:
You need to provide some more info, including:
Database type and version
Driver type and version
Application Server version
Please enable debugging and also include a debug trace.