> From: Patrick Plaatje [mailto:patr...@ipros.nl] > Subject: Re: "hanging" threads on Tomcat > > Thanks for the swift replies, i have two dump, appr a few > seconds apart uploaded to:
You appear to be out of database connections. This is almost always caused by webapp code not disposing of result sets, statements, and connections properly, leading to exhaustion of the pool. The proper technique is to insure that every place that obtains a connection also has a finally block that will close all the resources associated with the connection, including the connection itself. This is a common discussion topic, so you can search the archives for examples. Also look at the Tomcat doc for recommended practice and how to detect (and work around) lost connections: http://tomcat.apache.org/tomcat-5.5-doc/jndi-datasource-examples-howto.html - Chuck THIS COMMUNICATION MAY CONTAIN CONFIDENTIAL AND/OR OTHERWISE PROPRIETARY MATERIAL and is thus for use only by the intended recipient. If you received this in error, please contact the sender and delete the e-mail and its attachments from all computers. --------------------------------------------------------------------- To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org