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 randomly undeploys and redeploys the applications
Date Wed, 02 Apr 2014 20:05:59 GMT
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA256

Chuck,

On 4/2/14, 8:21 AM, Caldarale, Charles R wrote:
>> From: Elias Kopsiaftis [mailto:yemista@gmail.com] Subject: tomcat
>> randomly undeploys and redeploys the applications
> 
>> I deploy the application, then in the log file catalina.out i get
>> many messages from WebappClassLoader clearReferencesThreads
>> saying threads appear to have started but have failed to stop
> 
> This is an indication that your webapp is not managing its threads
> properly.
> 
>> then finally, Ill get a message from HostConfig checkResources
>> that says its undeploying the context, and then it redeploys.
> 
> This is sometimes caused by incorrect timestamps on the bits of the
> webapp that Tomcat monitors, or an incorrect clock setting on the
> system Tomcat is running on.  The mismatch makes it appear that the
> webapp is being updated continuously.

I've found that in development, a single update can cause Tomcat to go
into a loop of redeployments, re-deploying my web application every
few seconds or so. If I let it go, it does finally stop reloading and
settle down.

I believe Tomcat will emit a log message informing the administrator
which file has triggered the reload, but I think it's at the DEBUG log
level.

- -chris
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1
Comment: GPGTools - http://gpgtools.org
Comment: Using GnuPG with Thunderbird - http://www.enigmail.net/

iQIcBAEBCAAGBQJTPG2nAAoJEBzwKT+lPKRY9oIQAIFI0aUQ33he8KqNQgwBaigY
otTiL3Cr6dvVfYi2pLP9YK/2BqOkjtmCXAZ99gOhV0h3QntMWrBbYmkcu6BuibPH
gnm2vME/B8XdNhGatPQgs1dW3OWa/OTra6req0CcLX3IucGERJWrMotOSLrsylUH
lVkVWoRXZ3m6NikExKCmB/DUzy9dsecHGZM3hETEloye6p7EVez+RHFg/7VWDU42
GyPZqiGFVRDELobbc4FVAy2R0OLPVSXzbsnuM3ZFS/TRqX+PKItfsnYczzrck3rK
ozeYjmgG5IKD4eL/Nl0iUcZ/CjmHxTJCSlVwRhnQ7InFoNjR0TYur2dyw/+mqdlj
U0u61XYJiUqHUnk5LUh5pFvxfKOyRSy34YlHAHTOBg6Nl/TZoAMtGBXQ5gsLssHC
uf1U/oTl1hfhgIynQ3ijn10TXXXskEux5GHegUGVv8HqZNEcPVtuPw+3fEhGsXEu
vgHmXUJIbLBDwIVD9WGC7iYHR4zNwHetlFwUE+sxAxP/zLwPd+Ps4TcoKabUh0nG
sE7oj/qZxBHRxGIXg6BnGuzerHJPJT8dcaAo+U1zSmQdlAy1mCdvUrFpA7i63RdT
XU8mwimmr93WBBOkhnWg4iJjTIl2LKEo1GmV0JiB/eqZaWIFNFy8oBnW56KnEhLV
coHAGbSi2o7XZUdVpn0v
=kMSx
-----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