• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

Tomcat crash recovery?

 
Greenhorn
Posts: 2
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
I have a general question about Tomcat.

It seems that when an exception falls through to Tomcat that the Tomcat instance (and all installed apps) stop functioning. Is there a way to setup Tomcat to continue to run after an application exception or at the very least have Tomcat restart when it stops responding?

Thanks in advance!
 
Author and all-around good cowpoke
Posts: 13078
6
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator

It seems that when an exception falls through to Tomcat that the Tomcat instance (and all installed apps) stop functioning.



No, at least for exceptions occurring in a normal request Thread.

Once the exception has fallen all the way through to the service method it gets reported but Tomcat remains able to accept new requests.

If this is happening to you, some unusual circumstances must exist. What do you mean by "stop functioning"?

How are you starting Tomcat?

Mention Java version, Tomcat version and operating system to save time.

Bill
Bill
 
Li Jia Long
Greenhorn
Posts: 2
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Thank you for the reply. We are using the latest 5.5.23 Tomcat release with Java 1.5.10. We are starting up using the startup.sh script to start Tomcat.

I suspect it may be a servlet behaving badly. When I say that the installed apps stop functioning, requests to the server never return. The web browser never gets a response until the browser just gives a timeout. The odd thing is that once the error falls through on one of the servlets all of the installed servlets on the server behave the same way by not responding.
 
William Brogden
Author and all-around good cowpoke
Posts: 13078
6
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Right off hand I would say you have one or more request Threads stuck in a loop and consuming all the CPU time.

Your first post mentioned an Exception - is that speculation or did one actually get reported?

Bill
 
Don't get me started about those stupid light bulbs.
reply
    Bookmark Topic Watch Topic
  • New Topic