Win a copy of Re-engineering Legacy Software this week in the Refactoring forum
or Docker in Action in the Cloud/Virtualization forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

what should the reason cause tomcat quit/down itself ramdomly?

 
Frederick VAN Targero
Greenhorn
Posts: 7
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
i meet greak embarassed in one of my distributed project what work with jakarta, the jakarta always quit or down automatically by itself, then every thing will be ok after jakarta restart.
i use win2000 as server, and the ram is mass with 512M, although 256M shared with one oracle instance.
i doubt, what should the reason to cause tomcat quit?
 
Anthony Villanueva
Ranch Hand
Posts: 1055
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
What's showing up in the log files?
 
David O'Meara
Rancher
Posts: 13459
Android Eclipse IDE Ubuntu
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Could be poor coding in the app, do a search for System.exit
I don't think the default settings for Tomcat check for and block this.
Dave
 
David O'Meara
Rancher
Posts: 13459
Android Eclipse IDE Ubuntu
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
"frederick",
The Java Ranch has thousands of visitors every week, many with surprisingly similar names. To avoid confusion we have a naming convention, described at http://www.javaranch.com/name.jsp.
We require names to have at least two words, separated by a space, and strongly recommend that you use your full real name. Please edit your profile and select a new name which meets the requirements.
Thanks.
Dave
 
bodhtree
Greenhorn
Posts: 1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Its always poor tomcat to be blamed as usual when the fault lies in the appln-may be some thread blocking problem ,use a debugger
 
chanoch wiggers
Author
Ranch Hand
Posts: 245
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I am also pretty sure that it is exiting randomly because there are System.exit lines. Try looking inside catch() blocks = you've probably been taught to print something out to the screen and exit but that rarely what you want to do in a web server. Throwing a ServletException is a tiny bit more friendly to the user...
 
It is sorta covered in the JavaRanch Style Guide.
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic