File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes Servlets and the fly likes what should the reason cause tomcat quit/down itself ramdomly? Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Murach's Java Servlets and JSP this week in the Servlets forum!
JavaRanch » Java Forums » Java » Servlets
Bookmark "what should the reason cause tomcat quit/down itself ramdomly?" Watch "what should the reason cause tomcat quit/down itself ramdomly?" New topic
Author

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

Frederick VAN Targero
Greenhorn

Joined: Jun 07, 2002
Posts: 7
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

Joined: Mar 22, 2002
Posts: 1055
What's showing up in the log files?
David O'Meara
Rancher

Joined: Mar 06, 2001
Posts: 13459

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

Joined: Mar 06, 2001
Posts: 13459

"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

Joined: Jul 16, 2002
Posts: 1
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

Joined: May 24, 2001
Posts: 245
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...


chanoch<p><a href="http://www.amazon.com/exec/obidos/ASIN/1861007736/" target="_blank" rel="nofollow">Author of Professional Apache Tomcat</a></p>
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: what should the reason cause tomcat quit/down itself ramdomly?
 
Similar Threads
how about the jakarta performance for heavy load?
how to setup...
Develop a Servlet
configuring servlets on tomcat4
The CATALINA_HOME enviornment variable