Chris,

As I said in an email a minute ago, I use a cron process to stop Tomcat, copy in new war's and restart Tomcat at 1:00AM. The script is pretty simple:

JAVA_HOME=/usr/local/java; export JAVA_HOME

cd /usr/local/tomcat/bin
./shutdown.sh
sleep 60

rm -rf /usr/local/tomcat/webapps/livonia
rm -rf /usr/local/tomcat/webapps/default
rm -rf /usr/local/tomcat/webapps/paragon

cp /usr/local/tomcat_wars/etrak-plus.war /usr/local/tomcat/webapps/livonia.war

cp /usr/local/tomcat_wars/etrak-plus.war /usr/local/tomcat/webapps/default.war

cp /usr/local/tomcat_wars/etrak-plus.war /usr/local/tomcat/webapps/paragon.war

cp /usr/local/tomcat_wars/etrak-plus.war /usr/local/tomcat/webapps/test.war

sleep 30

strace -o /usr/local/tomcat/logs/trace_log.txt /usr/local/tomcat/bin/startup.sh

exit

I am reworking the strace part to rotate the logs.

Thanks,

Carl


----- Original Message ----- From: "Christopher Schultz" <ch...@christopherschultz.net>
To: "Tomcat Users List" <users@tomcat.apache.org>
Sent: Wednesday, February 24, 2010 10:15 AM
Subject: Re: [OT] Tomcat dies suddenly


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Chuck,

On 2/24/2010 10:00 AM, Caldarale, Charles R wrote:
From: Carl [mailto:c...@etrak-plus.com]
Subject: RE: Tomcat dies suddenly

the core files on my systems were in several directories

I wonder if the above is a clue to what's going on.  I've always seen
core files written to the current directory of the dying process,
never scattered around arbitrarily.  Tomcat's current directory
should be $CATALINA_HOME/bin;

Mine never is, but I run using catalina.sh, which doesn't execute a 'cd'
anywhere. Maybe this happens when running as a Windows service or
something, but I don't see this behavior when running on *NIX.

if one of the webapps is changing the
current directory, could that be contributing to the failure by
confusing other code or the JVM?  (Or is this just another of the
many red herrings?)

I suppose that's possible. Carl, are the core files all from the same
run? If so, something is very very wrong. Otherwise, maybe the reason
why you couldn't find any traces of your crash was that your CWD was
changing from what you expected it to be to some random subdirectory.
<shrug>

- -chris
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.10 (MingW32)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/

iEYEARECAAYFAkuFQnoACgkQ9CaO5/Lv0PBZYACgjd19BIr41ucOAenBQVE7//S6
ltoAnRyndQdsC8h70kshy1p7bkVgi6nY
=+ndQ
-----END PGP SIGNATURE-----

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
For additional commands, e-mail: users-h...@tomcat.apache.org




---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
For additional commands, e-mail: users-h...@tomcat.apache.org

Reply via email to