tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Christopher Schultz <ch...@christopherschultz.net>
Subject Re: WebApp Caching Broken
Date Tue, 06 Mar 2018 20:51:48 GMT
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA256

Ken,

On 3/6/18 9:09 AM, Kenneth Taylor wrote:
> More troubleshooting revealed that our root context xml had been
> copied from another installation and had a wrong path in it.

Do I smell another Darwin Award nomination?

> However, I don’t think this was the problem since it was only a
> path to a Log4J config. We re-installed Tomcat from scratch and it
> seems to have resolved it, but this is not good.  Why is Tomcat
> caching webapps?
Not sure what you mean. Please explain what YOU mean when you say
"caching". We probably have different definitions.

> Also determined that Tomcat was not shutting down properly.  Our 
> installation is deployed as a Windows Service.  Stopping the
> service did not stop Tomcat.  But the Service Console thinks it did
> stop, so when you restart it, another instance of Tomcat starts.
> We are using a Java Service Wrapper if that makes any difference.

Try taking a thread dump to see what threads are still running. My
guess is that your application starts some threads upon startup but
fails to shut them down on shutdown. Tomcat will not forcibly
shut-down the JVM for you; non-daemon threads can prevent the JVM stop
stopping even though Tomcat has shut-down cleanly.

> Also found another problem.  The “-XX:+DisableAttachMechanism” JVM 
> option does not work with Tomcat.  This is a security flaw.

Tomcat works perfectly fine with that option. There is no security
flaw, here. But it does mean that you won't be able to take a thread
dump of your application to find out what threads you left running,
sooo...

- -chris

> Disclaimer: This email from DMBGroup LLC, DMB Consulting Services
> LLC, or the personnel associated with either entity (collectively
> "*DMB*") and attachments, contain *CONFIDENTIAL, PRIVILEGED AND
> PROPRIETARY *information for exclusive use of the addressee
> individual(s) or entity.

OMG I had no idea!

> Unauthorized viewing, copying, disclosure, distribution or use of
> this e-mail or attachments may be subject to legal restriction or
> sanction.

Come at me, bro.

> If received in error, notify sender immediately by return e-mail
> and delete original message and attachments.

Obviously, both of these messages have been sent in error. It might be
difficult to remove them from the mailing list and archives and stuff.

> Nothing contained in this e-mail or attachments shall satisfy the 
> requirements for a writing unless specifically stated.
Hmm... writing isn't considered writing? Dogs and cats, living together.
..

> Nothing contained herein shall constitute a contract or electronic 
> signature under the Electronic Signatures in Global and National 
> Commerce Act, any version of the Uniform Electronic Transactions
> Act or any other statute governing electronic transactions.
Sorry, that's not how we roll here in Sealand. According to Article 6
Section 19 paragraph 49 sub-paragraph (e) of the Sealand Code, you are
now entered into a contract with all recipients of the list whereby
tyou agree not to be such a jerk. E Mare Libertas.

> Opinions and statements expressed in this e-mail and any
> attachments are those of the individual sender and not necessarily
> of DMB.

Good. But I still won't be contacting DMB for any consulting services
in the future, EVEN if they come out with another album as good as
Under the Table and Dreaming.

> DMB does not guarantee this e-mail transmission is secured, error
> or virus-free.
Or jerk-free. Time to update the disclaimer.

> Neither DMB nor the sender of this e-mail accepts liability for
> errors or omissions in the contents of this e-mail, which arise as
> a result of e-mail transmission.

How about sheer ignorance and lack of professional courtesy? I guess
that's not a technical problem.
-----BEGIN PGP SIGNATURE-----
Comment: GPGTools - http://gpgtools.org
Comment: Using GnuPG with Thunderbird - http://www.enigmail.net/

iQJRBAEBCAA7FiEEMmKgYcQvxMe7tcJcHPApP6U8pFgFAlqe/2QdHGNocmlzQGNo
cmlzdG9waGVyc2NodWx0ei5uZXQACgkQHPApP6U8pFiGSQ/5AZGIqJE4u6IP3eab
ivudFF5yXl0a+hVea3ML24sgIRSX90awsadi9rOrE9pROYtRGMN/ffrRp1URyxMA
E9Tz0QZtiKx7WoZGvkefhe9wgG64m7itf8jTr0uQRIRp/J3xmTlhE2IwDIpXlAXI
yssqeWR7Gj/ywWDHD4WLLr2KbHcnZUvf+gWrQLpCNVUo4vf48s1aU0iR5jts4Z1x
XYRKozC4GfW974o7KRplb+CxQ3xoifO4E/I87H6roKG/XodMpWCIIFo9yx/6MuWF
UKBf/PP2Oj4uY13jG3DjqqrgcDeZF2bBCxWjNvItuTN52eR3iUSEiYAveDIGfCxB
gnYSFSPoOC34AsrreYtDyCxuEC/JhJMymDnZp8+JbPA2Y0JHbpXP10ij+0AcHtCt
MWF6ubybYEwynchhTMt78Fmn+gzLVwIo688SR/6xb0OKAt+LLjRy5Xjzm/+t6p0p
aGHsBU9HG8n9KQsQNaCvKR62A3U4O9n+aCik7e4ARUl/VriUWGBI/46tkUdcs7O9
AZs53WoTq54zoTZM+srN8amP+t+6dM7zjlm8ExeCchpwICK8m1aKnFCaZazNqDpU
dxvCTIdlEA5LgmwQ0L7or2cKpiK/4WLejVpMkOJcLGs1KnaECjrHfkMrS7kNg8nZ
qLxqDfGYQTKkJijFOKcc70ADRdI=
=B6jm
-----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