-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA256 Cristian,
On 9/6/16 4:15 AM, Cristian Lorenzetto wrote: > It is a common problem to have a war can't unregister correctly in > undeploy phase. a lot of opensource libraries have this problem. > So you have to restart tomcat every time. But if you have multiple > war running and you cant stop other applications? It's unclear what you are asking. Can you ask your question in a different way? Tomcat itself runs perfectly well with multiple WARs deployed at the same time. There are some libraries that don't shut down well, or the applications that use them don't properly shut them down. The solution is to either fix the library (ask them!), or use Tomcat's "leak prevention listener" to pre-load those classes that represent a problem. http://tomcat.apache.org/tomcat-8.0-doc/config/listeners.html#JRE_Memory _Leak_Prevention_Listener_-_org.apache.catalina.core.JreMemoryLeakPreven tionListener You want to read about the "classesToInitialize" attribute. - -chris -----BEGIN PGP SIGNATURE----- Comment: GPGTools - http://gpgtools.org Comment: Using GnuPG with Thunderbird - http://www.enigmail.net/ iQIcBAEBCAAGBQJX0YmEAAoJEBzwKT+lPKRYhuMQALkOnHO/ds5ZM9h/LEmhyjGc RDRFvY3mRQAdMfv6CqH4RzLH55PqN3QvZDwrfyN1Gw5ZfYmmJLdnNlkBkijI/BE6 CKQ2psiC5mB9GxDC+ZcIM3f0aBkZQjH3xbAU9jmtrf8N7cMvFTFvpBpEouZoAKYb cChMBKrBp/uO9AqlztFl7m8iiff8pC2zsI+u9pp0MmKGsm8i0TQcdapyb/ukWzO2 hlGVIGW957uo3AGc9It66R32Y7Qo28C2Tlxc78Cx2l8hR9BE+50zqDti/N5BhK7I xYwGDV+sxqo7EhJKKdK+kbDWc0uBMx6rIL/Ja4mGl/evXh/Ke4D5qCI1fqvhtie/ 3vPlUuXKyOpRdZyNdkAtCBXTq3vH0tKTh9D3SekjbNUcyPPLm89++mUcpUjpCiAG qIxSyUQ/f3o2iHKtx5ghYOs6FYcA+2TOzNe7JlXlHaR9nLakA56SJ0OSs7HZy6YN mQlN5DGrbynaZSU3eMyZ2LtWKmeSn3DHWaVyNvsxJuNq5W3KoXiu04UJnhcthdiQ DoT8ZWQVepkQP4ZqtZAF3FlsCWoMZFfSf95nfU5Z02fOPbixRW6UaGfdFa7CdqwE 4Q111nIVri7UmuEkyhCUE1nieqM+yX8pBwtIu7b7RWPEq3N9KFLxtE2J/Whpn2/J gD0ysN7tXUVCgBTPCAgA =dvlG -----END PGP SIGNATURE----- --------------------------------------------------------------------- To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org