Testsuite: org.apache.catalina.loader.TestWebappClassLoaderExecutorMemoryLeak Tests run: 1, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 2.348 sec ------------- Standard Output --------------- class java.lang.Thread [pool-1-thread-4] EXITING class java.lang.Thread [pool-1-thread-1] EXITING class java.lang.Thread [pool-1-thread-5] EXITING class java.lang.Thread [pool-1-thread-3] EXITING class java.lang.Thread [pool-1-thread-2] EXITING ------------- ---------------- --------------- ------------- Standard Error ----------------- 10-Oct-2024 11:10:15.384 INFO [main] org.apache.catalina.startup.LoggingBaseTest.setUp Starting test case [testTimerThreadLeak] 10-Oct-2024 11:10:16.610 INFO [main] org.apache.coyote.AbstractProtocol.init Initializing ProtocolHandler ["http-nio-127.0.0.1-auto-1"] 10-Oct-2024 11:10:16.671 INFO [main] org.apache.catalina.core.StandardService.startInternal Starting service [Tomcat] 10-Oct-2024 11:10:16.676 INFO [main] org.apache.catalina.core.StandardEngine.startInternal Starting Servlet engine: [Apache Tomcat/10.1.32-dev] 10-Oct-2024 11:10:16.915 INFO [main] org.apache.coyote.AbstractProtocol.start Starting ProtocolHandler ["http-nio-127.0.0.1-auto-1-46061"] 10-Oct-2024 11:10:17.343 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.12/java.lang.Thread.sleep(Native Method) app//org.apache.catalina.loader.TestWebappClassLoaderExecutorMemoryLeak$ExecutorServlet$Task.run(TestWebappClassLoaderExecutorMemoryLeak.java:120) java.base@17.0.12/java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1136) java.base@17.0.12/java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:635) java.base@17.0.12/java.lang.Thread.run(Thread.java:840) 10-Oct-2024 11:10:17.346 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.12/java.lang.Class.isArray(Native Method) java.base@17.0.12/java.lang.Class.getComponentType(Class.java:1227) java.base@17.0.12/java.util.Arrays.copyOfRange(Arrays.java:3786) java.base@17.0.12/java.util.Arrays.copyOfRange(Arrays.java:3742) java.base@17.0.12/java.lang.invoke.MethodType.dropParameterTypes(MethodType.java:625) java.base@17.0.12/java.lang.invoke.LambdaFormEditor.bindArgumentType(LambdaFormEditor.java:512) java.base@17.0.12/java.lang.invoke.LambdaFormEditor.bindArgumentL(LambdaFormEditor.java:472) java.base@17.0.12/java.lang.invoke.BoundMethodHandle.bindArgumentL(BoundMethodHandle.java:92) java.base@17.0.12/java.lang.invoke.MethodHandles.insertArguments(MethodHandles.java:5177) java.base@17.0.12/java.lang.invoke.StringConcatFactory.prepender(StringConcatFactory.java:634) java.base@17.0.12/java.lang.invoke.StringConcatFactory.generateMHInlineCopy(StringConcatFactory.java:543) java.base@17.0.12/java.lang.invoke.StringConcatFactory.makeConcatWithConstants(StringConcatFactory.java:358) java.base@17.0.12/java.lang.invoke.DirectMethodHandle$Holder.invokeStatic(DirectMethodHandle$Holder) java.base@17.0.12/java.lang.invoke.DelegatingMethodHandle$Holder.delegate(DelegatingMethodHandle$Holder) java.base@17.0.12/java.lang.invoke.Invokers$Holder.invokeExact_MT(Invokers$Holder) java.base@17.0.12/java.lang.invoke.BootstrapMethodInvoker.invoke(BootstrapMethodInvoker.java:102) java.base@17.0.12/java.lang.invoke.CallSite.makeSite(CallSite.java:315) java.base@17.0.12/java.lang.invoke.MethodHandleNatives.linkCallSiteImpl(MethodHandleNatives.java:281) java.base@17.0.12/java.lang.invoke.MethodHandleNatives.linkCallSite(MethodHandleNatives.java:271) app//org.apache.catalina.loader.TestWebappClassLoaderExecutorMemoryLeak$ExecutorServlet$Task.run(TestWebappClassLoaderExecutorMemoryLeak.java:125) java.base@17.0.12/java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1136) java.base@17.0.12/java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:635) java.base@17.0.12/java.lang.Thread.run(Thread.java:840) 10-Oct-2024 11:10:17.359 INFO [main] org.apache.coyote.AbstractProtocol.pause Pausing ProtocolHandler ["http-nio-127.0.0.1-auto-1-46061"] 10-Oct-2024 11:10:17.371 INFO [main] org.apache.catalina.core.StandardService.stopInternal Stopping service [Tomcat] 10-Oct-2024 11:10:17.373 INFO [main] org.apache.coyote.AbstractProtocol.stop Stopping ProtocolHandler ["http-nio-127.0.0.1-auto-1-46061"] 10-Oct-2024 11:10:17.378 INFO [main] org.apache.coyote.AbstractProtocol.destroy Destroying ProtocolHandler ["http-nio-127.0.0.1-auto-1-46061"] ------------- ---------------- --------------- Testcase: testTimerThreadLeak took 2.258 sec