raine king a écrit : > 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? > Unfortunately, all tomcat can do is display the IP of sender.... However, as tomcat attach by default only to 127.0.0.1 address, you already know what the ip of command sender is. It's 127.0.0.1, aka localhost.
You can write a standalone application that listen to :8005 but does not respond, in the hope that sending process will be stuck waiting for acknowledgement of shutdown. Then immediatly issue a netstat to see which applications are connected where. As someone suggested, logging info from iptables can be usefull, but i don't know iptables in details :) > 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:12:39 PM >> >>> org.apache.catalina.core.StandardHostDeployerremove >> >>> INFO: Removing web application at context path /tomcat-docs >> >>> Feb 14, 2007 2:12:39 PM >> >>> org.apache.catalina.core.StandardHostDeployerremove >> >>> INFO: Removing web application at context path /myservlet4 >> >>> Feb 14, 2007 2:12:40 PM >> >>> org.apache.catalina.core.StandardHostDeployerremove >> >>> INFO: Removing web application at context path >> >>> Feb 14, 2007 2:12:40 PM >> >>> org.apache.catalina.core.StandardHostDeployerremove >> >>> INFO: Removing web application at context path /manager >> >>> Feb 14, 2007 2:12:40 PM org.apache.catalina.logger.LoggerBase stop >> >>> INFO: unregistering logger Catalina:type=Logger,host=localhost >> >>> Feb 14, 2007 2:12:40 PM org.apache.catalina.logger.LoggerBase stop >> >>> INFO: unregistering logger Catalina:type=Logger >> >>> Feb 14, 2007 2:12:40 PM org.apache.coyote.http11.Http11Protocol >> destroy >> >>> INFO: Stopping Coyote HTTP/1.1 on http-9007 >> >>> >> >>> >> >>> What does this mean? Why is it happening? >> >>> >> >>> _________________________________________________________________ >> >>> Laugh, share and connect with Windows Live Messenger >> >>> >> >>> >> http://clk.atdmt.com/MSN/go/msnnkwme0020000001msn/direct/01/?href=http://imagine-msn.com/messenger/launch80/default.aspx?locale=en-us&source=hmtagline >> >> >>> >> >>> >> >>> >> >>> >> --------------------------------------------------------------------- >> >>> To start a new topic, e-mail: users@tomcat.apache.org >> >>> To unsubscribe, e-mail: [EMAIL PROTECTED] >> >>> For additional commands, e-mail: [EMAIL PROTECTED] >> >>> >> >>> >> >> >> >> >> >> -- >> >> -Andre- >> >> >> >> People see things the way they are and say "why ?" I see things that >> >> never >> >> were and say "Why not ?" >> > >> > _________________________________________________________________ >> > Invite your Hotmail contacts to join your friends list with Windows >> > Live Spaces >> > >> http://clk.atdmt.com/MSN/go/msnnkwsp0070000001msn/direct/01/?href=http://spaces.live.com/spacesapi.aspx?wx_action=create&wx_url=/friends.aspx&mkt=en-us >> >> > >> > >> > >> > --------------------------------------------------------------------- >> > To start a new topic, e-mail: users@tomcat.apache.org >> > To unsubscribe, e-mail: [EMAIL PROTECTED] >> > For additional commands, e-mail: [EMAIL PROTECTED] >> > >> >> >> --------------------------------------------------------------------- >> To start a new topic, e-mail: users@tomcat.apache.org >> To unsubscribe, e-mail: [EMAIL PROTECTED] >> For additional commands, e-mail: [EMAIL PROTECTED] >> > > _________________________________________________________________ > Laugh, share and connect with Windows Live Messenger > http://clk.atdmt.com/MSN/go/msnnkwme0020000001msn/direct/01/?href=http://imagine-msn.com/messenger/launch80/default.aspx?locale=en-us&source=hmtagline > > > > --------------------------------------------------------------------- > To start a new topic, e-mail: users@tomcat.apache.org > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > --------------------------------------------------------------------- To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]