OK I figured it out:
Me and a couple testers were all running versions of Tomcat and once in a
while we would use the same machine, and we hadn't changed the shutdown
port/message(server.xml) so we were occasionally shutting down one another's
Tomcats with shutdown.sh!
Thanks everyone for you're help.
From: raine king [EMAIL PROTECTED]
Reply-To: Tomcat Users List users@tomcat.apache.org
To: users@tomcat.apache.org
Subject: Re: Tomcat mysteriously shuts down
Date: Thu, 15 Feb 2007 13:55:19 +
Hmm this may actually be working--I changed the port and so far it hasn't
shutdown--I'll leave it over the weekend and see what happens...
How do I check if another app is sending Tomcat messages? Does tomcat log
somewhere who it got SHUTDOWN commands from?
As for the second bit--I installed tomcat myself.
From: David Delbecq [EMAIL PROTECTED]
Reply-To: Tomcat Users List users@tomcat.apache.org
To: Tomcat Users List users@tomcat.apache.org
Subject: Re: Tomcat mysteriously shuts down
Date: Thu, 15 Feb 2007 14:08:33 +0100
Normally, tomcat shutsdown is a localhost running application sends a
shutdown command to the localhost server command port (8005). You can
try to change this port, in case another app is doing this. (replace
server element in server.xml by server port=8555 for example.
You can also try to change to change the shutdown command
server shutdown=TEST_SHUTDOWN_TEST
Also, did you install tomcat manually or using redhat distribution. It
may be that some redhat tools are configured to remove from memory
inactive servers (i have never heard of this, but it wouldn't be the
first oddity of tomcat/redhat :p)
En l'instant précis du 02/15/07 13:33, Nadav Steindler s'exprimait en
ces termes:
That's just it--there's nothing wierd in the catalina.out it just has:
1) The lines for starting up tomcat
2) The log messages for my servlet
3) The bit I showed you where the servlet shuts down when I stopped
sending it messages for a few minutes
There's no errors or anything in the log.
By the way, this is repeatable--I just let Tomcat sit without sending
it anything for 7-15 minutes and it shuts down.
ALSO I just noticed it only happens on our Linux Redhat 4 machine--not
on the Redhat 3 machine which we have used until now. (We are trying
to move the product to Redhat 4 with the Java5 JVM--so far this has
just meant configuring tomcat to use the Java5 jvm)
The environment where Tomcat shuts down unexpectedly is:
Machine - RH 4
Java - /usr/java/jdk1.5.0_06
Tomacat - jakarta-tomcat-5.0.28
The one where it works normally is:
Machine - RH 3
Java - /usr/lib/jvm/java-1.4.2-ibm-1.4.2.0
Tomacat - jakarta-tomcat-5.0.28
I'm running the exact same copy of the servlet and Tomcat, just on a
different machine running off a shared hard disk-- I just change a
line in the catalina.out to use the Java5 JVM on the RedHat 4 machine.
From: Andre Prasetya [EMAIL PROTECTED]
Reply-To: Tomcat Users List users@tomcat.apache.org
To: Tomcat Users List users@tomcat.apache.org
Subject: Re: Tomcat mysteriously shuts down
Date: Thu, 15 Feb 2007 17:56:22 +0700
why dont you post the catalina.out entry before pausing coyote ? the
one
that you post is the regular log for shutting down tomcat
On 2/15/07, Nadav Steindler [EMAIL PROTECTED] wrote:
When my servlet isn't sent any requests for about 15 minutes, tomcat
shuts
down. In particular:
1) The Tomcat process no longer appears when I do ps
2) The catalina.out ends with:
Feb 14, 2007 2:12:38 PM org.apache.coyote.http11.Http11Protocol pause
INFO: Pausing Coyote HTTP/1.1 on http-9007
Feb 14, 2007 2:12:39 PM org.apache.catalina.core.StandardService stop
INFO: Stopping service Catalina
Feb 14, 2007 2:12:39 PM
org.apache.catalina.core.StandardHostDeployerremove
INFO: Removing web application at context path /myservlet
Feb 14, 2007 2:12:39 PM
org.apache.catalina.core.StandardHostDeployerremove
INFO: Removing web application at context path /myservlet2
Feb 14, 2007 2:12:39 PM
org.apache.catalina.core.StandardHostDeployerremove
INFO: Removing web application at context path /admin
Feb 14, 2007 2:12:39 PM org.apache.catalina.logger.LoggerBase stop
INFO: unregistering logger
Catalina:type=Logger,path=/admin,host=localhost
Feb 14, 2007 2:12:39 PM
org.apache.catalina.core.StandardHostDeployerremove
INFO: Removing web application at context path /webdav
Feb 14, 2007 2:12:39 PM
org.apache.catalina.core.StandardHostDeployerremove
INFO: Removing web application at context path /servlets-examples
Feb 14, 2007 2:12:39 PM
org.apache.catalina.core.StandardHostDeployerremove
INFO: Removing web application at context path /jsp-examples
Feb 14, 2007 2:12:39 PM
org.apache.catalina.core.StandardHostDeployerremove
INFO: Removing web application at context path /balancer
Feb 14, 2007 2:12:39 PM
org.apache.catalina.core.StandardHostDeployerremove
INFO: Removing web application at context path /myservlet3
Feb 14, 2007 2