tomcat pauses then crashes after a period of time 2006-12-11 - By David Wood
Back Ok, I have found the problem. A firewall between my tomcat server and a MySQL server was closing the database connection. I was checking if this was closed in the web service, using the Connection.isClosed() method, but that does not work as expected and was returning true even though the connection was closed. The execution continued and an exception was thrown, where in the catch{} section I was then calling System.exit(), which I thought would shut down the web service only, but it is actually shutting down the whole JVM, causing tomcat to stop too.
Thanks for you help, Dave
-- --Original Message-- -- From: Caldarale, Charles R [mailto:Chuck.Caldarale@(protected)] Sent: Monday, 11 December 2006 2:28 PM To: Tomcat Users List Subject: RE: tomcat pauses then crashes after a period of time
> From: David Wood [mailto:d.wood@(protected)] > Subject: tomcat pauses then crashes after a period of time > > I have set up tomcat to run as a daemon using jsvc, which is > working well, except when tomcat is idle for a period of time > (usually overnight), and I execute a web service client, tomcat > receives the request then simply stops.
No answers, but could you run Tomcat from a shell for a while and see if anything informative comes out on the console?
- 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 start a new topic, e-mail: users@(protected) To unsubscribe, e-mail: users-unsubscribe@(protected) For additional commands, e-mail: users-help@(protected)
-- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ------ To start a new topic, e-mail: users@(protected) To unsubscribe, e-mail: users-unsubscribe@(protected) For additional commands, e-mail: users-help@(protected)
|
|