-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA256 Amit,
On 9/17/16 9:41 AM, Amit Pande wrote: > This might not be the right forum to ask this question. Yet wanted > to if anyone faced this issue. > > Our application uses Jacorb library to talk to legacy daemons over > CORBA. > > However while stopping the Tomcat, observing following errors. They > are from the jacrob.jar ..but not sure how to prevent this. Any > thoughts ? > > > SEVERE: The web application [] created a ThreadLocal with key of > type [org.jacorb.orb.Delegate$1] (value > [org.jacorb.orb.Delegate$1@62305af6]) and a value of type > [java.lang.Boolean] (value [false]) but failed to remove it when > the web application was stopped. Threads are going to be renewed > over time to try and avoid a probable memory leak. Sep 17, 2016 > 7:04:53 PM org.apache.catalina.loader.WebappClassLoaderBase > checkThreadLocalMapForLeaks SEVERE: The web application [] created > a ThreadLocal with key of type [org.jacorb.orb.Delegate$1] (value > [org.jacorb.orb.Delegate$1@62305af6]) and a value of type > [java.lang.Boolean] (value [false]) but failed to remove it when > the web application was stopped. Threads are going to be renewed > over time to try and avoid a probable memory leak. Your best bet is to ask the Jacorb group how to clean their ThreadLocal values since you are using this library in a servlet-container context. The good news is that Tomcat will slowly retire all of the threads in the thread pool so that those ThreadLocals will eventually be GC'd and you won't have a ClassLoader leak. So it would be best to find out how to use Jacorb correctly (or, if they have a bug, get them to fix it), but in the meantime you should be safe from memory leaks -- at least from this particular kind of ThreadLocal leak. Hope that helps, - -chris -----BEGIN PGP SIGNATURE----- Comment: GPGTools - http://gpgtools.org Comment: Using GnuPG with Thunderbird - http://www.enigmail.net/ iQIcBAEBCAAGBQJX3XLBAAoJEBzwKT+lPKRYcg0P/13NUKxmR3U6i0e7HcSAMDbL eBA5R+5SRGi0VAn9TnDOxLfedkjQnNaWk9k9lUrhm+pytJAb88r/Cbf2ijtrTK2H N3Lva5sIFjnFT0Qx7b0dRYBTjKmmeiWxpRbwYbgYgO8ktJxU7I/DnpCV6rejViT5 7aLj/UhiMeQo+xWunoW3JDh8f3xRm3hxglAvwg/ah+V99K8HNBaT1HzHYX4j2+3e uxPqouviZe1zJG4XCn737+MJaG7fVMROnSQEiccnB/W6Zyr8kIf1DsoUhtTi0N7O vYcSbUIGQYIDh8q6sxxHOvc/t5a5Hul2toNnB+SCHpXw5EwKkLzA5euG1j78BLcP R9ctvV1/1SIiyOew712T31bw563F6MdGOReXxvotz6veYCUiXVaTt7JPe2tGxl7p qy7RjJzWTrTSIIaKToLDBFgvkNUjkNrRSuNMs/Mupr5VOfIloFVw4dMRRVwA2BrX A0kKbAyZ0EcT5e9lTMHuD6wyqe0yuvZQd1r732WGsq+0ArlGcTGJgONuDOrKm8kl HPAz3jKx40kTfW7RHr6cZABu0QL0AbnVWghZMXL6hHrDNMBkQwJYXbISrToq+ujH 6HIDm7BqsPrI94+ETY2dLLkYQkSILr4PREzuKVlya762t92unT42k5CfgzXw5QpF LzCJjhDrRYICb3ETCIh7 =gwpo -----END PGP SIGNATURE----- --------------------------------------------------------------------- To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org