tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Christopher Schultz <ch...@christopherschultz.net>
Subject Re: Tomcat dies suddenly
Date Wed, 24 Feb 2010 22:11:10 GMT
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Carl,

On 2/24/2010 12:10 PM, Carl wrote:
> The first core that I saw was in $CATALINA_HOME/bin as expected.  The
> next crash produced one at root.  I thought this might have been because
> there is a cron process that runs a shell script in the
> /usr/local/tomcat_wars directory that restarts Tomcat (using shutdown.sh
> and startup.sh in the $CATALINA_HOME/bin directory) at 1:00AM so I just
> never paid it much attention.

That is likely to be the problem. If 'root' runs your cron jobs, you
might want to change your cron job to specifically use the Tomcat user:
it's a lot safer than having root run Tomcat for you :)

Some cron software allows you to set the effective uid for a job. If
yours doesn't, you can always do 'su -c 'strace ...' - tomcat_user' in
your cron job, or directly in your script.

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

iEYEARECAAYFAkuFo/4ACgkQ9CaO5/Lv0PCroQCfXytB+dQ5HMofV6O5oTop4eu2
TvEAoLfzXSSztuaC0cxNHqrcNoJUliCm
=pGtT
-----END PGP SIGNATURE-----

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


Mime
View raw message