Howdy, Strange. You definitely should NOT have a webapp without a web.xml file. Even an empty web.xml (with just the DOCTYPE and <web-app />) is fine.
Enable more verbose logging of tomcat and your apps. The GC log looks fine. Yoav Shapira Millennium ChemInformatics >-----Original Message----- >From: Mark.he [mailto:[EMAIL PROTECTED] >Sent: Sunday, December 28, 2003 9:01 PM >To: Tomcat Users List >Subject: Why Tomcat shutdown unprovokedly? > >Hi All, > >I have encountered a problem when using Tomcat4.1.29. >I changed the appbase to my appliaction's directory (not in >$TOMCAT_HOME/webapps) and add a context like this: ><Context path="" > docBase="/usr/local/myapplication" > crossContext="true" > debug="0" > reloadable="true" > trusted="false" > ></Context> >The application isn't a standard webapp. There is no web.xml in the >application's directory. > >Everything works well after staring the Tomcat. >But after 2-3 hours, the Tomcat will shutdown itself. > >The catalina.out will record like this (I have modified the debug level to >8): > >ServerLifecycleListener: Destroying MBean for ContextResource >ContextResource[name=UserDatabase, description=User database that can be >updated > and saved, type=org.apache.catalina.UserDatabase, auth=Container, >scope=Shareable] >ServerLifecycleListener: Destroying MBean for ContextEnvironment >ContextEnvironment[name=simpleValue, type=java.lang.Integer, value=30, >overri >de=true] >ServerLifecycleListener: Destroying MBean for NamingResources >[EMAIL PROTECTED] >ServerLifecycleListener: Destroying MBean for Valve >[EMAIL PROTECTED] >ServerLifecycleListener: Destroying MBean for Manager >[EMAIL PROTECTED] >ServerLifecycleListener: Destroying MBean for Logger >[EMAIL PROTECTED] >ServerLifecycleListener: Destroying MBean for Loader WebappLoader[] >ServerLifecycleListener: Destroying MBean for NamingResources >[EMAIL PROTECTED] >ServerLifecycleListener: Destroying MBean for Context >StandardEngine[Standalone].StandardHost[localhost].StandardContext[] >ServerLifecycleListener: Destroying MBean for Valve >ErrorReportValve[localhost] >ServerLifecycleListener: Destroying MBean for Valve >ErrorDispatcherValve[localhost] >ServerLifecycleListener: Destroying MBean for Valve >[EMAIL PROTECTED] >ServerLifecycleListener: Destroying MBean for Logger >[EMAIL PROTECTED] >ServerLifecycleListener: Destroying MBean for Host >StandardEngine[Standalone].StandardHost[localhost] >ServerLifecycleListener: Destroying MBean for Valve >[EMAIL PROTECTED] >ServerLifecycleListener: Destroying MBean for Realm >[EMAIL PROTECTED] >ServerLifecycleListener: Destroying MBean for Logger >[EMAIL PROTECTED] >ServerLifecycleListener: Destroying MBean for Engine >StandardEngine[Standalone] >ServerLifecycleListener: Destroying MBean for Connector >[EMAIL PROTECTED] >ServerLifecycleListener: Destroying MBean for Connector >[EMAIL PROTECTED] >ServerLifecycleListener: Destroying MBean for Service >StandardService[Tomcat-Standalone] >ServerLifecycleListener: Destroying MBean for Server StandardServer[8005] >GlobalResourcesLifecycleListener: Destroying MBeans for Global JNDI >Resources >Stopping service Tomcat-Standalone > >I recorded gc log, the records almost are FULL GC record like: >8341.069: [Full GC 491455K->314771K(519168K), 8.4939708 secs] >8400.893: [Full GC 479251K->313981K(519168K), 8.2763773 secs] >8450.546: [Full GC 478461K->295591K(519168K), 8.4257336 secs] >8504.026: [Full GC 460071K->300918K(519168K), 5.7439801 secs] >8552.918: [Full GC 465398K->305423K(519168K), 5.7107256 secs] >8596.866: [Full GC 469903K->309825K(519168K), 5.8541711 secs] > >FYI some softwares related: >j2sdk-1_4_2_03-solaris-sparc.tar.Z >jakarta-tomcat-4.1.29.tar >64bit OS Solaris9 with Sparc CPU >MySQL4.0 (The problem arises even though I am not using the DataBase). > >Any suggestion will be appreciated! > >Thanks in advanced. >Mark > > This e-mail, including any attachments, is a confidential business communication, and may contain information that is confidential, proprietary and/or privileged. This e-mail is intended only for the individual(s) to whom it is addressed, and may not be saved, copied, printed, disclosed or used by anyone else. If you are not the(an) intended recipient, please immediately delete this e-mail from your computer system and notify the sender. Thank you. --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
