1 Reply Latest reply on Feb 10, 2020 11:44 AM by Greg Michael

    The web application [baocdp] created a ThreadLocal with key of type [java.lang.ThreadLocal] ...Threads are going to be renewed over time to try and avoid a probable memory leak

    Natali Nogueira
      Share This:

      CDP and HACDP services are stopping gracefully.

      And catalina.out is showing these log messages.

      Please, any idea? Thak you.

       

       

      10-Feb-2020 11:00:07.558 INFO [Thread-278] org.apache.coyote.AbstractProtocol.pause Pausing ProtocolHandler ["https-jsse-nio-38080"]

      10-Feb-2020 11:00:07.615 INFO [Thread-278] org.apache.catalina.core.StandardService.stopInternal Stopping service [Catalina]

      10-Feb-2020 11:00:07.724 SEVERE [Thread-278] org.apache.catalina.loader.WebappClassLoaderBase.checkThreadLocalMapForLeaks The web application [baoocp] created a ThreadLocal with key of type [java.lang.InheritableThreadLocal] (value [java.lang.InheritableThreadLocal@12febfd]) and a value of type [org.springframework.security.context.SecurityContextImpl] (value [org.springframework.security.context.SecurityContextImpl@ffffffff: Null authentication]) 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.

      10-Feb-2020 11:02:29.491 INFO [Thread-278] com.sun.xml.ws.transport.http.servlet.WSServletDelegate.destroy WSSERVLET15: JAX-WS servlet destroyed

      10-Feb-2020 11:02:29.500 INFO [Thread-278] com.sun.xml.ws.server.WSEndpointImpl.closeManagedObjectManager Closing Metro monitoring root: com.sun.metro:pp=/,type=WSEndpoint,name=/baocdp-OrchestratorServiceService-OrchestratorServicePort

      10-Feb-2020 11:02:29.502 INFO [Thread-278] com.sun.xml.ws.transport.http.servlet.WSServletContextListener.contextDestroyed WSSERVLET13: JAX-WS context listener destroyed

      10-Feb-2020 11:02:29.514 INFO [Thread-278] com.sun.xml.ws.transport.http.servlet.WSServletContextListener.contextDestroyed WSSERVLET13: JAX-WS context listener destroyed

      10-Feb-2020 11:02:29.517 WARNING [Thread-278] org.apache.catalina.loader.WebappClassLoaderBase.clearReferencesJdbc The web application [baocdp] registered the JDBC driver [org.apache.derby.jdbc.AutoloadedDriver] but failed to unregister it when the web application was stopped. To prevent a memory leak, the JDBC Driver has been forcibly unregistered.

      10-Feb-2020 11:02:29.518 WARNING [Thread-278] org.apache.catalina.loader.WebappClassLoaderBase.clearReferencesThreads The web application [baocdp] appears to have started a thread named [Timer-0] but has failed to stop it. This is very likely to create a memory leak. Stack trace of thread:

      java.lang.Object.wait(Native Method)

      java.lang.Object.wait(Object.java:502)

      java.util.TimerThread.mainLoop(Timer.java:526)

      java.util.TimerThread.run(Timer.java:505)

      10-Feb-2020 11:02:29.519 WARNING [Thread-278] org.apache.catalina.loader.WebappClassLoaderBase.clearReferencesThreads The web application [baocdp] appears to have started a thread named [pool-2-thread-1] but has failed to stop it. This is very likely to create a memory leak. Stack trace of thread:

      sun.misc.Unsafe.park(Native Method)

      java.util.concurrent.locks.LockSupport.parkNanos(LockSupport.java:215)

      java.util.concurrent.locks.AbstractQueuedSynchronizer$ConditionObject.awaitNanos(AbstractQueuedSynchronizer.java:2078)

      java.util.concurrent.ScheduledThreadPoolExecutor$DelayedWorkQueue.take(ScheduledThreadPoolExecutor.java:1093)

      java.util.concurrent.ScheduledThreadPoolExecutor$DelayedWorkQueue.take(ScheduledThreadPoolExecutor.java:809)

      java.util.concurrent.ThreadPoolExecutor.getTask(ThreadPoolExecutor.java:1074)

      java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1134)

      java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624)

      java.lang.Thread.run(Thread.java:748)

      10-Feb-2020 11:02:29.520 WARNING [Thread-278] org.apache.catalina.loader.WebappClassLoaderBase.clearReferencesThreads The web application [baocdp] appears to have started a thread named [__DEFAULT__] but has failed to stop it. This is very likely to create a memory leak. Stack trace of thread:

      java.lang.Object.wait(Native Method)

      java.lang.Object.wait(Object.java:502)

      java.util.TimerThread.mainLoop(Timer.java:526)

      java.util.TimerThread.run(Timer.java:505)

      10-Feb-2020 11:02:29.521 WARNING [Thread-278] org.apache.catalina.loader.WebappClassLoaderBase.clearReferencesThreads The web application [baocdp] appears to have started a thread named [Statistics Thread-__DEFAULT__-1] but has failed to stop it. This is very likely to create a memory leak. Stack trace of thread:

      sun.misc.Unsafe.park(Native Method)

      java.util.concurrent.locks.LockSupport.parkNanos(LockSupport.java:215)

      java.util.concurrent.locks.AbstractQueuedSynchronizer$ConditionObject.awaitNanos(AbstractQueuedSynchronizer.java:2078)

      java.util.concurrent.ScheduledThreadPoolExecutor$DelayedWorkQueue.take(ScheduledThreadPoolExecutor.java:1093)

      java.util.concurrent.ScheduledThreadPoolExecutor$DelayedWorkQueue.take(ScheduledThreadPoolExecutor.java:809)

      java.util.concurrent.ThreadPoolExecutor.getTask(ThreadPoolExecutor.java:1074)

      java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1134)

      java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624)

      java.lang.Thread.run(Thread.java:748)

      10-Feb-2020 11:02:29.522 WARNING [Thread-278] org.apache.catalina.loader.WebappClassLoaderBase.clearReferencesThreads The web application [baocdp] appears to have started a thread named [AMP - Grid Framework - Shared Timer] but has failed to stop it. This is very likely to create a memory leak. Stack trace of thread:

      java.lang.Object.wait(Native Method)

      java.util.TimerThread.mainLoop(Timer.java:552)

      java.util.TimerThread.run(Timer.java:505)

      10-Feb-2020 11:02:29.524 WARNING [Thread-278] org.apache.catalina.loader.WebappClassLoaderBase.clearReferencesThreads The web application [baocdp] appears to have started a thread named [AMP - Grid Framework - Scheduled - 1] but has failed to stop it. This is very likely to create a memory leak. Stack trace of thread:

      sun.misc.Unsafe.park(Native Method)

      java.util.concurrent.locks.LockSupport.parkNanos(LockSupport.java:215)

      java.util.concurrent.locks.AbstractQueuedSynchronizer$ConditionObject.awaitNanos(AbstractQueuedSynchronizer.java:2078)

      java.util.concurrent.ScheduledThreadPoolExecutor$DelayedWorkQueue.take(ScheduledThreadPoolExecutor.java:1093)

      java.util.concurrent.ScheduledThreadPoolExecutor$DelayedWorkQueue.take(ScheduledThreadPoolExecutor.java:809)

      java.util.concurrent.ThreadPoolExecutor.getTask(ThreadPoolExecutor.java:1074)

      java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1134)

      java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624)

      java.lang.Thread.run(Thread.java:748)

      10-Feb-2020 11:02:29.525 WARNING [Thread-278] org.apache.catalina.loader.WebappClassLoaderBase.clearReferencesThreads The web application [baocdp] appears to have started a thread named [AMP - Grid Framework - Connection Health Tester Timer - 0] but has failed to stop it. This is very likely to create a memory leak. Stack trace of thread:

      java.lang.Object.wait(Native Method)

      com.realops.foundation.gridframework.Completion.waitForResponses(Completion.java:298)

      com.realops.foundation.gridframework.TopologyParticipant.makeRequestImpl(TopologyParticipant.java:1551)

      com.realops.foundation.gridframework.TopologyParticipant$CommHealthTester.testHealthOfPipe(TopologyParticipant.java:245)

      com.realops.foundation.gridframework.TopologyParticipant$CommHealthTester.run(TopologyParticipant.java:328)

      java.util.TimerThread.mainLoop(Timer.java:555)

      java.util.TimerThread.run(Timer.java:505)

      10-Feb-2020 11:02:29.526 WARNING [Thread-278] org.apache.catalina.loader.WebappClassLoaderBase.clearReferencesThreads The web application [baocdp] appears to have started a thread named [AMP - Grid Framework - Connection Health Tester Timer - 1] but has failed to stop it. This is very likely to create a memory leak. Stack trace of thread:

      java.lang.Object.wait(Native Method)

      com.realops.foundation.gridframework.Completion.waitForResponses(Completion.java:298)

      com.realops.foundation.gridframework.TopologyParticipant.makeRequestImpl(TopologyParticipant.java:1551)

      com.realops.foundation.gridframework.TopologyParticipant$CommHealthTester.testHealthOfPipe(TopologyParticipant.java:245)

      com.realops.foundation.gridframework.TopologyParticipant$CommHealthTester.run(TopologyParticipant.java:328)

      java.util.TimerThread.mainLoop(Timer.java:555)

      java.util.TimerThread.run(Timer.java:505)

      10-Feb-2020 11:02:29.527 WARNING [Thread-278] org.apache.catalina.loader.WebappClassLoaderBase.clearReferencesThreads The web application [baocdp] appears to have started a thread named [ActiveMQ InactivityMonitor ReadCheckTimer] but has failed to stop it. This is very likely to create a memory leak. Stack trace of thread:

      java.lang.Object.wait(Native Method)

      java.lang.Object.wait(Object.java:502)

      java.util.TimerThread.mainLoop(Timer.java:526)

      java.util.TimerThread.run(Timer.java:505)

      10-Feb-2020 11:02:29.528 WARNING [Thread-278] org.apache.catalina.loader.WebappClassLoaderBase.clearReferencesThreads The web application [baocdp] appears to have started a thread named [AMP - AMP - Periodic Task Executor - 1] but has failed to stop it. This is very likely to create a memory leak. Stack trace of thread:

      sun.misc.Unsafe.park(Native Method)

      java.util.concurrent.locks.LockSupport.parkNanos(LockSupport.java:215)

      java.util.concurrent.locks.AbstractQueuedSynchronizer$ConditionObject.awaitNanos(AbstractQueuedSynchronizer.java:2078)

      java.util.concurrent.ScheduledThreadPoolExecutor$DelayedWorkQueue.take(ScheduledThreadPoolExecutor.java:1093)

      java.util.concurrent.ScheduledThreadPoolExecutor$DelayedWorkQueue.take(ScheduledThreadPoolExecutor.java:809)

      java.util.concurrent.ThreadPoolExecutor.getTask(ThreadPoolExecutor.java:1074)

      java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1134)

      java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624)

      java.lang.Thread.run(Thread.java:748)

      10-Feb-2020 11:02:29.529 WARNING [Thread-278] org.apache.catalina.loader.WebappClassLoaderBase.clearReferencesThreads The web application [baocdp] appears to have started a thread named [AMP - AMP - Periodic Task Executor - 2] but has failed to stop it. This is very likely to create a memory leak. Stack trace of thread:

      sun.misc.Unsafe.park(Native Method)

      java.util.concurrent.locks.LockSupport.park(LockSupport.java:175)

      java.util.concurrent.locks.AbstractQueuedSynchronizer$ConditionObject.await(AbstractQueuedSynchronizer.java:2039)

      java.util.concurrent.ScheduledThreadPoolExecutor$DelayedWorkQueue.take(ScheduledThreadPoolExecutor.java:1088)

      java.util.concurrent.ScheduledThreadPoolExecutor$DelayedWorkQueue.take(ScheduledThreadPoolExecutor.java:809)

      java.util.concurrent.ThreadPoolExecutor.getTask(ThreadPoolExecutor.java:1074)

      java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1134)

      java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624)

      java.lang.Thread.run(Thread.java:748)

      10-Feb-2020 11:02:29.530 WARNING [Thread-278] org.apache.catalina.loader.WebappClassLoaderBase.clearReferencesThreads The web application [baocdp] appears to have started a thread named [AMP - Grid Framework - Connection Health Tester Timer - 2] but has failed to stop it. This is very likely to create a memory leak. Stack trace of thread:

      java.lang.Object.wait(Native Method)

      com.realops.foundation.gridframework.Completion.waitForResponses(Completion.java:298)

      com.realops.foundation.gridframework.TopologyParticipant.makeRequestImpl(TopologyParticipant.java:1551)

      com.realops.foundation.gridframework.TopologyParticipant$CommHealthTester.testHealthOfPipe(TopologyParticipant.java:245)

      com.realops.foundation.gridframework.TopologyParticipant$CommHealthTester.run(TopologyParticipant.java:328)

      java.util.TimerThread.mainLoop(Timer.java:555)

      java.util.TimerThread.run(Timer.java:505)

      10-Feb-2020 11:02:29.530 WARNING [Thread-278] org.apache.catalina.loader.WebappClassLoaderBase.clearReferencesThreads The web application [baocdp] appears to have started a thread named [AMP - Grid Framework - Connection Health Tester Timer - 3] but has failed to stop it. This is very likely to create a memory leak. Stack trace of thread:

      java.lang.Object.wait(Native Method)

      com.realops.foundation.gridframework.Completion.waitForResponses(Completion.java:298)

      com.realops.foundation.gridframework.TopologyParticipant.makeRequestImpl(TopologyParticipant.java:1551)

      com.realops.foundation.gridframework.TopologyParticipant$CommHealthTester.testHealthOfPipe(TopologyParticipant.java:245)

      com.realops.foundation.gridframework.TopologyParticipant$CommHealthTester.run(TopologyParticipant.java:328)

      java.util.TimerThread.mainLoop(Timer.java:555)

      java.util.TimerThread.run(Timer.java:505)

      10-Feb-2020 11:02:29.531 WARNING [Thread-278] org.apache.catalina.loader.WebappClassLoaderBase.clearReferencesThreads The web application [baocdp] appears to have started a thread named [AMP - Grid Framework - Connection Health Tester Timer - 4] but has failed to stop it. This is very likely to create a memory leak. Stack trace of thread:

      java.lang.Object.wait(Native Method)

      com.realops.foundation.gridframework.Completion.waitForResponses(Completion.java:298)

      com.realops.foundation.gridframework.TopologyParticipant.makeRequestImpl(TopologyParticipant.java:1551)

      com.realops.foundation.gridframework.TopologyParticipant$CommHealthTester.testHealthOfPipe(TopologyParticipant.java:245)

      com.realops.foundation.gridframework.TopologyParticipant$CommHealthTester.run(TopologyParticipant.java:328)

      java.util.TimerThread.mainLoop(Timer.java:555)

      java.util.TimerThread.run(Timer.java:505)

      10-Feb-2020 11:02:29.532 WARNING [Thread-278] org.apache.catalina.loader.WebappClassLoaderBase.clearReferencesThreads The web application [baocdp] appears to have started a thread named [AMP - Grid Framework - Connection Health Tester Timer - 5] but has failed to stop it. This is very likely to create a memory leak. Stack trace of thread:

      java.lang.Object.wait(Native Method)

      com.realops.foundation.gridframework.Completion.waitForResponses(Completion.java:298)

      com.realops.foundation.gridframework.TopologyParticipant.makeRequestImpl(TopologyParticipant.java:1551)

      com.realops.foundation.gridframework.TopologyParticipant$CommHealthTester.testHealthOfPipe(TopologyParticipant.java:245)

      com.realops.foundation.gridframework.TopologyParticipant$CommHealthTester.run(TopologyParticipant.java:328)

      java.util.TimerThread.mainLoop(Timer.java:555)

      java.util.TimerThread.run(Timer.java:505)

      10-Feb-2020 11:02:29.533 WARNING [Thread-278] org.apache.catalina.loader.WebappClassLoaderBase.clearReferencesThreads The web application [baocdp] appears to have started a thread named [AMP - Grid Framework - Connection Health Tester Timer - 6] but has failed to stop it. This is very likely to create a memory leak. Stack trace of thread:

      java.lang.Object.wait(Native Method)

      com.realops.foundation.gridframework.Completion.waitForResponses(Completion.java:298)

      com.realops.foundation.gridframework.TopologyParticipant.makeRequestImpl(TopologyParticipant.java:1551)

      com.realops.foundation.gridframework.TopologyParticipant$CommHealthTester.testHealthOfPipe(TopologyParticipant.java:245)

      com.realops.foundation.gridframework.TopologyParticipant$CommHealthTester.run(TopologyParticipant.java:328)

      java.util.TimerThread.mainLoop(Timer.java:555)

      java.util.TimerThread.run(Timer.java:505)

      10-Feb-2020 11:02:29.534 WARNING [Thread-278] org.apache.catalina.loader.WebappClassLoaderBase.clearReferencesThreads The web application [baocdp] appears to have started a thread named [AMP - Grid Framework - Connection Health Tester Timer - 7] but has failed to stop it. This is very likely to create a memory leak. Stack trace of thread:

      java.lang.Object.wait(Native Method)

      com.realops.foundation.gridframework.Completion.waitForResponses(Completion.java:298)

      com.realops.foundation.gridframework.TopologyParticipant.makeRequestImpl(TopologyParticipant.java:1551)

      com.realops.foundation.gridframework.TopologyParticipant$CommHealthTester.testHealthOfPipe(TopologyParticipant.java:245)

      com.realops.foundation.gridframework.TopologyParticipant$CommHealthTester.run(TopologyParticipant.java:328)

      java.util.TimerThread.mainLoop(Timer.java:555)

      java.util.TimerThread.run(Timer.java:505)

      10-Feb-2020 11:02:29.535 WARNING [Thread-278] org.apache.catalina.loader.WebappClassLoaderBase.clearReferencesThreads The web application [baocdp] appears to have started a thread named [AMP - AMP - Periodic Task Executor - 3] but has failed to stop it. This is very likely to create a memory leak. Stack trace of thread:

      java.lang.Object.wait(Native Method)

      com.realops.foundation.gridframework.Completion.waitForResponses(Completion.java:298)

      com.realops.foundation.gridframework.TopologyParticipant.makeRequestImpl(TopologyParticipant.java:1551)

      com.realops.foundation.gridframework.HAHub.makeMasterRequestImpl(HAHub.java:7273)

      com.realops.foundation.gridframework.HAHub.makeMasterRequest(HAHub.java:6120)

      com.realops.foundation.health.SharedHealth.fetchMonitorEventsFromMaster(SharedHealth.java:296)

      com.realops.foundation.health.HealthComponent$1.run(HealthComponent.java:293)

      java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511)

      java.util.concurrent.FutureTask.runAndReset(FutureTask.java:308)

      java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.access$301(ScheduledThreadPoolExecutor.java:180)

      java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.run(ScheduledThreadPoolExecutor.java:294)

      java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149)

      java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624)

      java.lang.Thread.run(Thread.java:748)

      10-Feb-2020 11:02:29.536 WARNING [Thread-278] org.apache.catalina.loader.WebappClassLoaderBase.clearReferencesThreads The web application [baocdp] appears to have started a thread named [AMP - AMP - Periodic Task Executor - 4] but has failed to stop it. This is very likely to create a memory leak. Stack trace of thread:

      sun.misc.Unsafe.park(Native Method)

      java.util.concurrent.locks.LockSupport.park(LockSupport.java:175)

      java.util.concurrent.locks.AbstractQueuedSynchronizer$ConditionObject.await(AbstractQueuedSynchronizer.java:2039)

      java.util.concurrent.ScheduledThreadPoolExecutor$DelayedWorkQueue.take(ScheduledThreadPoolExecutor.java:1088)

      java.util.concurrent.ScheduledThreadPoolExecutor$DelayedWorkQueue.take(ScheduledThreadPoolExecutor.java:809)

      java.util.concurrent.ThreadPoolExecutor.getTask(ThreadPoolExecutor.java:1074)

      java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1134)

      java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624)

      java.lang.Thread.run(Thread.java:748)

      10-Feb-2020 11:02:29.537 WARNING [Thread-278] org.apache.catalina.loader.WebappClassLoaderBase.clearReferencesThreads The web application [baocdp] appears to have started a thread named [AMP - Grid Framework - Connection Health Tester Timer - 9] but has failed to stop it. This is very likely to create a memory leak. Stack trace of thread:

      java.lang.Object.wait(Native Method)

      com.realops.foundation.gridframework.Completion.waitForResponses(Completion.java:298)

      com.realops.foundation.gridframework.TopologyParticipant.makeRequestImpl(TopologyParticipant.java:1551)

      com.realops.foundation.gridframework.TopologyParticipant$CommHealthTester.testHealthOfPipe(TopologyParticipant.java:245)

      com.realops.foundation.gridframework.TopologyParticipant$CommHealthTester.run(TopologyParticipant.java:328)

      java.util.TimerThread.mainLoop(Timer.java:555)

      java.util.TimerThread.run(Timer.java:505)

      10-Feb-2020 11:02:29.537 WARNING [Thread-278] org.apache.catalina.loader.WebappClassLoaderBase.clearReferencesThreads The web application [baocdp] appears to have started a thread named [AMP - Grid Framework - Connection Health Tester Timer - 10] but has failed to stop it. This is very likely to create a memory leak. Stack trace of thread:

      java.lang.Object.wait(Native Method)

      com.realops.foundation.gridframework.Completion.waitForResponses(Completion.java:298)

      com.realops.foundation.gridframework.TopologyParticipant.makeRequestImpl(TopologyParticipant.java:1551)

      com.realops.foundation.gridframework.TopologyParticipant$CommHealthTester.testHealthOfPipe(TopologyParticipant.java:245)

      com.realops.foundation.gridframework.TopologyParticipant$CommHealthTester.run(TopologyParticipant.java:328)

      java.util.TimerThread.mainLoop(Timer.java:555)

      java.util.TimerThread.run(Timer.java:505)

      10-Feb-2020 11:02:29.538 WARNING [Thread-278] org.apache.catalina.loader.WebappClassLoaderBase.clearReferencesThreads The web application [baocdp] appears to have started a thread named [pool-15-thread-1] but has failed to stop it. This is very likely to create a memory leak. Stack trace of thread:

      sun.misc.Unsafe.park(Native Method)

      java.util.concurrent.locks.LockSupport.parkNanos(LockSupport.java:215)

      java.util.concurrent.locks.AbstractQueuedSynchronizer$ConditionObject.awaitNanos(AbstractQueuedSynchronizer.java:2078)

      java.util.concurrent.ScheduledThreadPoolExecutor$DelayedWorkQueue.take(ScheduledThreadPoolExecutor.java:1093)

      java.util.concurrent.ScheduledThreadPoolExecutor$DelayedWorkQueue.take(ScheduledThreadPoolExecutor.java:809)

      java.util.concurrent.ThreadPoolExecutor.getTask(ThreadPoolExecutor.java:1074)

      java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1134)

      java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624)

      java.lang.Thread.run(Thread.java:748)

      10-Feb-2020 11:02:29.540 SEVERE [Thread-278] org.apache.catalina.loader.WebappClassLoaderBase.checkThreadLocalMapForLeaks The web application [baocdp] created a ThreadLocal with key of type [java.lang.ThreadLocal] (value [java.lang.ThreadLocal@3835cc64]) and a value of type [org.apache.derby.iapi.services.context.ContextManager] (value [org.apache.derby.iapi.services.context.ContextManager@861d374]) 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.