-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA256

Mark,

On 3/15/19 19:49, Mark Thomas wrote:
> On 15/03/2019 17:51, Shankar P S wrote:
>> @Mark Thanks for the tip. I compared the 2 heap dumps. For the
>> same server.xml config, 8.5.38 version of Tomcat creates 3
>> StandardContext instances. I see that these 3 objects have their
>> own hierarchy. ---- *Tomcat 8.5.38 - 3 instances of
>> StandardContext*
>> 
>> First instance   originalDocBase
>> "/var/www/tomcat/webapps/ROOT.war", docBase "ROOT", displayName
>> "/", workDir "work/Catalina/localhost/ROOT"
>> 
>> Second instance  docBase ROOT.war, workDir
>> "work/Catalina/localhost/ROOT"
>> 
>> Third instance   originalDocBase
>> "/var/www/tomcat/webapps/ROOT.war", docBase "ROOT", displayName
>> "/", workDir "work/Catalina/localhost/ROOT"
> 
> Odd. Worth checking the state field for each of those instances.
> 
> Check the logs. You should see start (and hopefully some stop)
> messages for those.
> 
> Is it possible the app has been reloaded?

+1

Shankar, if it's possible to modify the web application, you might
want to use a ServletContextListener to purge that cache on
application shutdown. If the application itself has a ClassLoader leak
(which is common), cleaning-up a little bit on shutdown can stop the
bleeding while you investigate the root cause of any ClassLoader leak.

- -chris
-----BEGIN PGP SIGNATURE-----
Comment: Using GnuPG with Thunderbird - https://www.enigmail.net/

iQIzBAEBCAAdFiEEMmKgYcQvxMe7tcJcHPApP6U8pFgFAlyMPLQACgkQHPApP6U8
pFiWxQ//aAopKwEpHy95eoGPIFZfTW28Wif3dWyk+oE2RDy+0hQaOROgHDvqUVCC
VOSbApqAwV/jvE+VW1fFrML8T3hVTbxN2oRPYjjljbMyYAaQMiu2sFX8u0+I2O+A
XT+BuIA1Sf0ZzeNEd7X892rdG5omH7TL8w4Xa1errsXxwUaTVr2l6QqZfpLpRSRP
uBjUXdH/Qkxu0eJ55pPxgfmgdfOU28fE7bd+absloXYitCxW6KnyxgL/GCaFq44t
eSmOfxNI/7RQc64x/R+niPF3i1CDFZreEuBu6+2negPwWgQNGQrSTyQY2jnB8ZOa
5weROOdOQtKlr1Nw6wW/y3Asx9ti/lDBpbzyDLMRe+q4PGV/A2t2mRoNDdmPdHje
famrH3kk0B6ijn4rVe2HO68ca/sJuMLMP8itrj72+gAWEEGorzkSBBJg7Hr2Czzm
dIjfCqV8u1dVCmexn+dYc990gHp/TvnUCEZpFuySdq1le8yKLU2BhRBiZA88uR0m
F8rRYrAQZDHZ6GOcQLS8C261O58HBPglOuatgej5EW0Ys7MqLnOh6IeK5NKpjLdT
dyGkOBCB7sqC/1DYmfT5EJlhzTJ/tbn/8kyfZfJOKBGgr+xZv23tfVHVNv1LJuGJ
J/2k6IRcQzariMTCTUTmU7I/oXfsoK8lffSGEmfjMGYV+slDQs8=
=66tB
-----END PGP SIGNATURE-----

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

Reply via email to