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

Elias,

On 4/2/14, 4:12 PM, Elias Kopsiaftis wrote:
> Thats very interesting. When you say update, what do you mean
> technically?

I mean a build that triggers new class files, libraries, or some other
"watched" resource to trigger an automatic reload. If you want to
disable automatic reloads completely, set reloadable="false" on your
<Context> (which is actually the default).

If you want to still be able to reload your web application sometimes,
consider installing the Manager webapp, which will let you do reloads,
etc. via a text/HTTP or GUI interface.

- -chris

> On Wed, Apr 2, 2014 at 4:05 PM, Christopher Schultz < 
> chris@christopherschultz.net> wrote:
> 
> 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
>> 
>> ---------------------------------------------------------------------
>>
>> 
To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
>> For additional commands, e-mail: users-help@tomcat.apache.org
>> 
>> 
> 
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1
Comment: GPGTools - http://gpgtools.org
Comment: Using GnuPG with Thunderbird - http://www.enigmail.net/

iQIcBAEBCAAGBQJTPHFUAAoJEBzwKT+lPKRYwKEQALm1X3IqSHJLcLRyeM41gDeh
vcnu1zgUP1KqGJeV1BZHq3aREUBELdcpCncvVALd4xuJT+1JR6qDbHRINNSUAEbF
JNx8j0r+/Y2eYFFwWt4gNa+7USSxvy7xzz0Sj726U74MCoiSQULKB/53VNn8tPPA
GhNsZcIcclYaaaDyEV5OQ0joyLwrVXo7AWbvsh82AJmpoQ0WnkKmsX40u4rTbMfb
bb3JLnDEs93WGbYzKd7UfXxs9gaVFLg+TFeBP+hNiAfRz2JFiBiQnpwsNBURA0lo
SySFylSVXI2JjHexaT4N+OR3ZB4d2p4eEwOA1Cv9ZGEU/9wH6cTIykDsL2SYWubj
6+3VeGL2xepq6PYxaniDaRLx+dxcEOs97dVxHS/w+M5VzUm2LZm7O9vXuhtQTLGt
WIOhp5ffpvYVvLhuDoxm7XmPMnMH4kBOjc5Cz4v3NgL9eVUJIRWJxWPkdqnZFiU/
S9pQmWl6BBgt5gOUUjLu8almvYWoi8ogGt8Sv4iX1EYdGrGpU1eyqxlHV3C2pR58
eBUqaVE4GLaa0H8ZknMm0leLRdzdhMaEUDbPBdHl2XfCo9+CkqX059zqp6UPFiFr
ap5UgkFl8llobJoxLM1hbE635Wxg26LpxagQ9kUR1wWHrlyIeldrEV0dQtfuvqf5
b7KIADcRBXm5hTpRTXap
=EZOG
-----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