Testsuite: org.apache.catalina.valves.TestStuckThreadDetectionValve Tests run: 2, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 15.316 sec ------------- Standard Error ----------------- 14-Jun-2024 14:28:15.721 INFO [main] org.apache.catalina.startup.LoggingBaseTest.setUp Starting test case [testDetection] 14-Jun-2024 14:28:16.326 INFO [main] org.apache.coyote.AbstractProtocol.init Initializing ProtocolHandler ["http-nio-127.0.0.1-auto-1"] 14-Jun-2024 14:28:16.380 INFO [main] org.apache.catalina.core.StandardService.startInternal Starting service [Tomcat] 14-Jun-2024 14:28:16.380 INFO [main] org.apache.catalina.core.StandardEngine.startInternal Starting Servlet engine: [Apache Tomcat/10.1.25-dev] 14-Jun-2024 14:28:16.543 INFO [main] org.apache.coyote.AbstractProtocol.start Starting ProtocolHandler ["http-nio-127.0.0.1-auto-1-42951"] 14-Jun-2024 14:28:19.555 WARNING [Catalina-utility-1] org.apache.catalina.valves.StuckThreadDetectionValve.notifyStuckThreadDetected Thread [http-nio-127.0.0.1-auto-1-exec-1] (id=[19]) has been active for [2,866] milliseconds (since [6/14/24, 2:28 PM]) to serve the same request for [http://localhost:42951/myservlet] and may be stuck (configured threshold for this StuckThreadDetectionValve is [2] seconds). There is/are [1] thread(s) in total that are monitored by this Valve and may be stuck. java.lang.Throwable at java.base@17.0.7/java.lang.Thread.sleep(Native Method) at app//org.apache.catalina.valves.TestStuckThreadDetectionValve$StickingServlet.doGet(TestStuckThreadDetectionValve.java:149) at app//jakarta.servlet.http.HttpServlet.service(HttpServlet.java:564) at app//jakarta.servlet.http.HttpServlet.service(HttpServlet.java:658) at app//org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:195) at app//org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:140) at app//org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:167) at app//org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:90) at app//org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:482) at app//org.apache.catalina.valves.StuckThreadDetectionValve.invoke(StuckThreadDetectionValve.java:185) at app//org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:115) at app//org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:93) at app//org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:74) at app//org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:344) at app//org.apache.coyote.http11.Http11Processor.service(Http11Processor.java:389) at app//org.apache.coyote.AbstractProcessorLight.process(AbstractProcessorLight.java:63) at app//org.apache.coyote.AbstractProtocol$ConnectionHandler.process(AbstractProtocol.java:904) at app//org.apache.tomcat.util.net.NioEndpoint$SocketProcessor.doRun(NioEndpoint.java:1741) at app//org.apache.tomcat.util.net.SocketProcessorBase.run(SocketProcessorBase.java:52) at app//org.apache.tomcat.util.threads.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1190) at app//org.apache.tomcat.util.threads.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:659) at app//org.apache.tomcat.util.threads.TaskThread$WrappingRunnable.run(TaskThread.java:63) at java.base@17.0.7/java.lang.Thread.run(Thread.java:833) 14-Jun-2024 14:28:24.688 INFO [main] org.apache.coyote.AbstractProtocol.pause Pausing ProtocolHandler ["http-nio-127.0.0.1-auto-1-42951"] 14-Jun-2024 14:28:24.691 INFO [main] org.apache.catalina.core.StandardService.stopInternal Stopping service [Tomcat] 14-Jun-2024 14:28:24.709 INFO [main] org.apache.coyote.AbstractProtocol.stop Stopping ProtocolHandler ["http-nio-127.0.0.1-auto-1-42951"] 14-Jun-2024 14:28:24.715 INFO [main] org.apache.coyote.AbstractProtocol.destroy Destroying ProtocolHandler ["http-nio-127.0.0.1-auto-1-42951"] 14-Jun-2024 14:28:24.722 INFO [main] org.apache.catalina.startup.LoggingBaseTest.setUp Starting test case [testInterruption] 14-Jun-2024 14:28:24.725 INFO [main] org.apache.coyote.AbstractProtocol.init Initializing ProtocolHandler ["http-nio-127.0.0.1-auto-2"] 14-Jun-2024 14:28:24.726 INFO [main] org.apache.catalina.core.StandardService.startInternal Starting service [Tomcat] 14-Jun-2024 14:28:24.727 INFO [main] org.apache.catalina.core.StandardEngine.startInternal Starting Servlet engine: [Apache Tomcat/10.1.25-dev] 14-Jun-2024 14:28:24.761 INFO [main] org.apache.coyote.AbstractProtocol.start Starting ProtocolHandler ["http-nio-127.0.0.1-auto-2-40187"] 14-Jun-2024 14:28:27.741 WARNING [Catalina-utility-1] org.apache.catalina.valves.StuckThreadDetectionValve.notifyStuckThreadDetected Thread [http-nio-127.0.0.1-auto-2-exec-1] (id=[35]) has been active for [2,923] milliseconds (since [6/14/24, 2:28 PM]) to serve the same request for [http://localhost:40187/myservlet] and may be stuck (configured threshold for this StuckThreadDetectionValve is [2] seconds). There is/are [1] thread(s) in total that are monitored by this Valve and may be stuck. java.lang.Throwable at java.base@17.0.7/java.lang.Thread.sleep(Native Method) at app//org.apache.catalina.valves.TestStuckThreadDetectionValve$StickingServlet.doGet(TestStuckThreadDetectionValve.java:149) at app//jakarta.servlet.http.HttpServlet.service(HttpServlet.java:564) at app//jakarta.servlet.http.HttpServlet.service(HttpServlet.java:658) at app//org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:195) at app//org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:140) at app//org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:167) at app//org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:90) at app//org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:482) at app//org.apache.catalina.valves.StuckThreadDetectionValve.invoke(StuckThreadDetectionValve.java:185) at app//org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:115) at app//org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:93) at app//org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:74) at app//org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:344) at app//org.apache.coyote.http11.Http11Processor.service(Http11Processor.java:389) at app//org.apache.coyote.AbstractProcessorLight.process(AbstractProcessorLight.java:63) at app//org.apache.coyote.AbstractProtocol$ConnectionHandler.process(AbstractProtocol.java:904) at app//org.apache.tomcat.util.net.NioEndpoint$SocketProcessor.doRun(NioEndpoint.java:1741) at app//org.apache.tomcat.util.net.SocketProcessorBase.run(SocketProcessorBase.java:52) at app//org.apache.tomcat.util.threads.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1190) at app//org.apache.tomcat.util.threads.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:659) at app//org.apache.tomcat.util.threads.TaskThread$WrappingRunnable.run(TaskThread.java:63) at java.base@17.0.7/java.lang.Thread.run(Thread.java:833) 14-Jun-2024 14:28:30.756 WARNING [Catalina-utility-2] org.apache.catalina.valves.StuckThreadDetectionValve$MonitoredThread.interruptIfStuck Thread [http-nio-127.0.0.1-auto-2-exec-1] (id=[35]) has been interrupted because it was active for [5,930] milliseconds (since [6/14/24, 2:28 PM]) to serve the same request for [http://localhost:40187/myservlet] and was probably stuck (configured interruption threshold for this StuckThreadDetectionValve is [5] seconds). java.lang.Throwable at java.base@17.0.7/java.lang.Thread.sleep(Native Method) at app//org.apache.catalina.valves.TestStuckThreadDetectionValve$StickingServlet.doGet(TestStuckThreadDetectionValve.java:149) at app//jakarta.servlet.http.HttpServlet.service(HttpServlet.java:564) at app//jakarta.servlet.http.HttpServlet.service(HttpServlet.java:658) at app//org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:195) at app//org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:140) at app//org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:167) at app//org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:90) at app//org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:482) at app//org.apache.catalina.valves.StuckThreadDetectionValve.invoke(StuckThreadDetectionValve.java:185) at app//org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:115) at app//org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:93) at app//org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:74) at app//org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:344) at app//org.apache.coyote.http11.Http11Processor.service(Http11Processor.java:389) at app//org.apache.coyote.AbstractProcessorLight.process(AbstractProcessorLight.java:63) at app//org.apache.coyote.AbstractProtocol$ConnectionHandler.process(AbstractProtocol.java:904) at app//org.apache.tomcat.util.net.NioEndpoint$SocketProcessor.doRun(NioEndpoint.java:1741) at app//org.apache.tomcat.util.net.SocketProcessorBase.run(SocketProcessorBase.java:52) at app//org.apache.tomcat.util.threads.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1190) at app//org.apache.tomcat.util.threads.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:659) at app//org.apache.tomcat.util.threads.TaskThread$WrappingRunnable.run(TaskThread.java:63) at java.base@17.0.7/java.lang.Thread.run(Thread.java:833) 14-Jun-2024 14:28:30.760 INFO [main] org.apache.coyote.AbstractProtocol.pause Pausing ProtocolHandler ["http-nio-127.0.0.1-auto-2-40187"] 14-Jun-2024 14:28:30.763 INFO [main] org.apache.catalina.core.StandardService.stopInternal Stopping service [Tomcat] 14-Jun-2024 14:28:30.766 INFO [main] org.apache.coyote.AbstractProtocol.stop Stopping ProtocolHandler ["http-nio-127.0.0.1-auto-2-40187"] 14-Jun-2024 14:28:30.769 INFO [main] org.apache.coyote.AbstractProtocol.destroy Destroying ProtocolHandler ["http-nio-127.0.0.1-auto-2-40187"] ------------- ---------------- --------------- Testcase: testDetection took 9.213 sec Testcase: testInterruption took 6.05 sec