Keith Ng [mailto:[EMAIL PROTECTED]] wrote:

> is there anyway to log the shutting down of tomcat? My tomcat 
> server tend to
> auto shutdown for unknown reasons. I have been trying to 
> trace to no avail.
> Currently using 1.3.1 and tomcat 4.0.2. it shuts down like 
> after 4-5 hours
> and i wasnt able to track why did it shutdown. I have changed 
> my ODBC-JDBC
> bridge(type 1) to type 4 drivers. It could also be my tomcat 
> crashing... i
> do not know.

I could think about the following reasons:
        a) a hard crash of the Java VM (may happen when using native
code)
        b) Some code calls System.exit()
        c) You get to many OutOfMemory Exceptions eventually killing the
VM

In case of a) there should be either a core dump or at least some System
log. Try starting Tomcat in a console of its own and look what happens.

b) Can be fighted by Starting Tomcat with a Security Manager prohibiting
   a call to System.exit(). Eventually you can trace the culprit then
   by looking for the SecurityException

c) Monitor the Resource Usage of the Application and the logs ....

In General setting the Debug level in the server.xml may give you
some hints (For a proper shutdown the destroy() methods of Servlets)
should be called. Hope you have enough space on your devices to log
away 4-5 hours ...

   |         Business Operation Systems GmbH
   |  _
 / | / \ \   Klaus Halfmann,  Dipl. Inform.
|  |/  /  |  
|   \_/   |  Tel. +49(0)69-24779-0 Fax +49(0)69-24779-444
 \       /   [EMAIL PROTECTED]
 

--
To unsubscribe:   <mailto:[EMAIL PROTECTED]>
For additional commands: <mailto:[EMAIL PROTECTED]>
Troubles with the list: <mailto:[EMAIL PROTECTED]>

Reply via email to