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:54:01 GMT
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA256

Mark,

On 4/2/14, 4:30 PM, Mark Eggers wrote:
> Chris,
> 
> On 4/2/2014 1:05 PM, Christopher Schultz wrote:
>> -----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.
>> 
> 
> Can you describe your development environment a little bit, and
> any thoughts as to what might trigger this loop of redeployments?

I use Eclipse for development, but our "real" build process is
ant-based. We have some watched resources configured outside the
default (stuff like Struts config files, etc.).

When I do a build while Tomcat is running, usually I get one webapp
reload, but sometimes I get a series of reloads. It usually gets so
irritating (our webapp takes about 10 seconds to reload) that I just
kill Tomcat and immediately restart it. It starts up once and all is
well after that.

> I've not seen this, but it could explain some issues some the
> developers I support are seeing.

It definitely happens, and I never remember to enable the DEBUG
logging to find out what resource it thinks has been updated until
after it happens, at which point I just don't care. Perhaps I should
enable it right now :)

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

iQIcBAEBCAAGBQJTPHjmAAoJEBzwKT+lPKRYtzMP/2cBUk4nK2Ox5IL4BvxT0YF1
xb5WGrh+QvRBuOyPF1M2X2SVIijyh0k9geRD3zWaGl4YZ8dLVZY4mXEmh2lXt4g9
B1jhNrUpeNHUVtb5gVrzwj063H+duabm67OWzXXJMzTY2MlaroPhx9W80Fu7OpJY
Nsh7WNsFxBa5KPAV2H3XjbP6Oskbpv1F329AaBHM6HAH2J4eHahtpEujaIolSQbA
L8rOT1UYw3dblMQRuvryydB42btw1hTpgZX7UHGIsNxtELPy8LkwrmaCxAKaHBvR
zbw2vKj5VWjpaBmWzPT4qIrdIJg2wUAfXYjyAKuZ5JRxIxEPiTWB6SM5224Jzknv
DFwic0FxervIcLudfSb96Xcto0fqNzUJeHHPhRD8eGzSOIdkqiI8Faqml/f207ma
ibXQp6OIo1P8YLGkA21ZWBwSrp3hvKpV0+Nq+LarVTueODv4Mig1E8S3B5n9CzZQ
8N6vVZolnZlpkXC88VuQk6Dct0u8kmx5sqR/HUY7ACSVZHskRABVi5C+AxWg89TN
ElXmPydGyjgvOp1Ldf5S6jBSdTY9qI7LEl7kBrEUKMz4aBzwfmTw2/08yozAjaQW
TxJuOderFvslr+C2iQ6g8Qqsk+davD/bZ05REw9vz4/QgGzGCNhAW9pKoH5GoU0x
ZHwMuvTSzwM754whVzKf
=fzrA
-----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