RE: How to log shutting down of tomcat
-Original Message- From: Halfmann, Klaus [mailto:[EMAIL PROTECTED]] Sent: Tuesday, March 05, 2002 3:54 PM To: Tomcat Users List 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 -- Wat are native code? I really do not noe would u mind explaining? 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. -- Do u mean start in command prompt? 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 -- argh again how do i configure the security manager 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 ... How do i set my debug level??? argh... im a real newbie... pls help... _ Do You Yahoo!? Get your free @yahoo.com address at http://mail.yahoo.com -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED]
RE: How to log shutting down of tomcat
I have tried running with startup -f $CATALINA_HOME/logs/catalina.out in command promot, tomcat window comes up a while den disappear, if i do it with just startup there is no problem using win2k btw -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]On Behalf Of Lev Assinovsky Sent: Tuesday, March 05, 2002 4:17 PM To: Tomcat Users List Subject: Re: How to log shutting down of tomcat You can see tomcat's shutdown in /logs/catalina.out Run tail -f $CATALINA_HOME/logs/catalina.out Keith Ng 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. _ Do You Yahoo!? Get your free @yahoo.com address at http://mail.yahoo.com -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED] -- Lev AssinovskyPeterlink Web ProgrammerSt. Petersburg, Russia Tel/Fax: +7 812 3275343 197022 ul.Chapigina 7Á E-mail: [EMAIL PROTECTED] -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED] _ Do You Yahoo!? Get your free @yahoo.com address at http://mail.yahoo.com -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED]
RE: How to log shutting down of tomcat
Btw i ran it this way C:\Tomcat-4.0.2\binstartup -f $CATALINA_HOME/logs/catalina.out Using CATALINA_BASE: C:\Tomcat-4.0.2 Using CATALINA_HOME: C:\Tomcat-4.0.2 Using CATALINA_TMPDIR: C:\Tomcat-4.0.2\temp Using JAVA_HOME: C:\jdk1.3.1 C:\Tomcat-4.0.2\bin -Original Message- From: Keith Ng [mailto:[EMAIL PROTECTED]] Sent: Thursday, March 07, 2002 4:01 AM To: Tomcat Users List Subject: RE: How to log shutting down of tomcat I have tried running with startup -f $CATALINA_HOME/logs/catalina.out in command promot, tomcat window comes up a while den disappear, if i do it with just startup there is no problem using win2k btw -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]On Behalf Of Lev Assinovsky Sent: Tuesday, March 05, 2002 4:17 PM To: Tomcat Users List Subject: Re: How to log shutting down of tomcat You can see tomcat's shutdown in /logs/catalina.out Run tail -f $CATALINA_HOME/logs/catalina.out Keith Ng 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. _ Do You Yahoo!? Get your free @yahoo.com address at http://mail.yahoo.com -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED] -- Lev AssinovskyPeterlink Web ProgrammerSt. Petersburg, Russia Tel/Fax: +7 812 3275343 197022 ul.Chapigina 7Á E-mail: [EMAIL PROTECTED] -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED] _ Do You Yahoo!? Get your free @yahoo.com address at http://mail.yahoo.com -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED] _ Do You Yahoo!? Get your free @yahoo.com address at http://mail.yahoo.com -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED]
RE: How to log shutting down of tomcat
Are you running Tomcat as a service and it happens to shutdown every time you log off the machine? If so then you are having a problem with one of Sun's feature enhancements to the JVM. You need to pass the JVM -Xrs when it starts up so that it doesn't pay attention to the logoff signal. In Tomcat 4 you do this by editing the registry. HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\Apache Tomcat\Parameters is the group of setting you will be working with. First check your JVM Option Number X parameters to make sure you aren't already passing in a -Xrs. If not, increase the JVM Option Count's value by one (call this value X for future reference). Create a new String Value entry names JVM Option Number X-1 and the value is -Xrs. Restart the service, log off, and Tomcat should still be running. Randy -Original Message- From: Keith Ng [mailto:[EMAIL PROTECTED]] Sent: Tuesday, March 05, 2002 2:38 AM To: Tomcat Users List Subject: How to log shutting down of tomcat 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. _ Do You Yahoo!? Get your free @yahoo.com address at http://mail.yahoo.com -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED] -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED]
RE: How to log shutting down of tomcat
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]
Re: How to log shutting down of tomcat
You can see tomcat's shutdown in /logs/catalina.out Run tail -f $CATALINA_HOME/logs/catalina.out Keith Ng 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. _ Do You Yahoo!? Get your free @yahoo.com address at http://mail.yahoo.com -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED] -- Lev AssinovskyPeterlink Web ProgrammerSt. Petersburg, Russia Tel/Fax: +7 812 3275343 197022 ul.Chapigina 7Á E-mail: [EMAIL PROTECTED] -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED]