Testsuite: org.apache.catalina.loader.TestWebappClassLoaderExecutorMemoryLeak Tests run: 1, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 2.422 sec ------------- Standard Output --------------- class java.lang.Thread [pool-1-thread-5] EXITING class java.lang.Thread [pool-1-thread-1] EXITING class java.lang.Thread [pool-1-thread-3] EXITING class java.lang.Thread [pool-1-thread-4] EXITING class java.lang.Thread [pool-1-thread-2] EXITING ------------- ---------------- --------------- ------------- Standard Error ----------------- 14-Jun-2024 14:39:59.825 INFO [main] org.apache.catalina.startup.LoggingBaseTest.setUp Starting test case [testTimerThreadLeak] 14-Jun-2024 14:40:00.918 INFO [main] org.apache.coyote.AbstractProtocol.init Initializing ProtocolHandler ["http-nio2-127.0.0.1-auto-1"] 14-Jun-2024 14:40:01.111 INFO [main] org.apache.catalina.core.StandardService.startInternal Starting service [Tomcat] 14-Jun-2024 14:40:01.112 INFO [main] org.apache.catalina.core.StandardEngine.startInternal Starting Servlet engine: [Apache Tomcat/10.1.25-dev] 14-Jun-2024 14:40:01.436 INFO [main] org.apache.coyote.AbstractProtocol.start Starting ProtocolHandler ["http-nio2-127.0.0.1-auto-1-38297"] 14-Jun-2024 14:40:01.711 WARNING [main] org.apache.catalina.loader.WebappClassLoaderBase.clearReferencesThreads The web application [ROOT] appears to have started a thread named [pool-1-thread-1] but has failed to stop it. This is very likely to create a memory leak. Stack trace of thread: java.base@17.0.7/java.lang.Thread.sleep(Native Method) app//org.apache.catalina.loader.TestWebappClassLoaderExecutorMemoryLeak$ExecutorServlet$Task.run(TestWebappClassLoaderExecutorMemoryLeak.java:120) java.base@17.0.7/java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1136) java.base@17.0.7/java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:635) java.base@17.0.7/java.lang.Thread.run(Thread.java:833) 14-Jun-2024 14:40:01.716 WARNING [main] org.apache.catalina.loader.WebappClassLoaderBase.clearReferencesThreads The web application [ROOT] appears to have started a thread named [pool-1-thread-2] but has failed to stop it. This is very likely to create a memory leak. Stack trace of thread: java.base@17.0.7/java.lang.invoke.DirectMethodHandle$Holder.invokeStatic(DirectMethodHandle$Holder) java.base@17.0.7/java.lang.invoke.LambdaForm$MH/0x0000000801082400.invoke(LambdaForm$MH) java.base@17.0.7/java.lang.invoke.LambdaForm$MH/0x0000000801082c00.invoke(LambdaForm$MH) java.base@17.0.7/java.lang.invoke.Invokers$Holder.linkToTargetMethod(Invokers$Holder) app//org.apache.catalina.loader.TestWebappClassLoaderExecutorMemoryLeak$ExecutorServlet$Task.run(TestWebappClassLoaderExecutorMemoryLeak.java:125) java.base@17.0.7/java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1136) java.base@17.0.7/java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:635) java.base@17.0.7/java.lang.Thread.run(Thread.java:833) 14-Jun-2024 14:40:01.730 INFO [main] org.apache.coyote.AbstractProtocol.pause Pausing ProtocolHandler ["http-nio2-127.0.0.1-auto-1-38297"] 14-Jun-2024 14:40:01.732 INFO [main] org.apache.catalina.core.StandardService.stopInternal Stopping service [Tomcat] 14-Jun-2024 14:40:01.733 INFO [main] org.apache.coyote.AbstractProtocol.stop Stopping ProtocolHandler ["http-nio2-127.0.0.1-auto-1-38297"] 14-Jun-2024 14:40:01.736 INFO [main] org.apache.coyote.AbstractProtocol.destroy Destroying ProtocolHandler ["http-nio2-127.0.0.1-auto-1-38297"] ------------- ---------------- --------------- Testcase: testTimerThreadLeak took 2.335 sec