Run| Workspace| Log| Issues| Fixes| Pre-reqs| Stats| XRef| Maven Repository Proxy Log Gump Logo

Details

File Contents

Testsuite: org.apache.catalina.valves.TestStuckThreadDetectionValve
Tests run: 2, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 14.877 sec
------------- Standard Error -----------------
26-Oct-2021 10:26:46.764 INFO [main] org.apache.catalina.startup.LoggingBaseTest.setUp Starting test case [testDetection]
26-Oct-2021 10:26:47.147 INFO [main] org.apache.coyote.AbstractProtocol.init Initializing ProtocolHandler ["http-nio2-127.0.0.1-auto-1"]
26-Oct-2021 10:26:47.173 INFO [main] org.apache.catalina.core.StandardService.startInternal Starting service [Tomcat]
26-Oct-2021 10:26:47.174 INFO [main] org.apache.catalina.core.StandardEngine.startInternal Starting Servlet engine: [Apache Tomcat/8.5.72-dev]
26-Oct-2021 10:26:47.266 INFO [main] org.apache.coyote.AbstractProtocol.start Starting ProtocolHandler ["http-nio2-127.0.0.1-auto-1-38877"]
26-Oct-2021 10:26:50.275 WARNING [ContainerBackgroundProcessor[StandardEngine[Tomcat].StandardHost[localhost].StandardContext[]]] org.apache.catalina.valves.StuckThreadDetectionValve.notifyStuckThreadDetected Thread [http-nio2-127.0.0.1-auto-1-exec-2] (id=[23]) has been active for [2,931] milliseconds (since [10/26/21, 10:26 AM]) to serve the same request for [http://localhost:38877/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@11.0.11/java.lang.Thread.sleep(Native Method)
		at app//org.apache.catalina.valves.TestStuckThreadDetectionValve$StickingServlet.doGet(TestStuckThreadDetectionValve.java:156)
		at app//javax.servlet.http.HttpServlet.service(HttpServlet.java:655)
		at app//javax.servlet.http.HttpServlet.service(HttpServlet.java:764)
		at app//org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:231)
		at app//org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:166)
		at app//org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:197)
		at app//org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:97)
		at app//org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:542)
		at app//org.apache.catalina.valves.StuckThreadDetectionValve.invoke(StuckThreadDetectionValve.java:206)
		at app//org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:135)
		at app//org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:81)
		at app//org.apache.catalina.valves.AbstractAccessLogValve.invoke(AbstractAccessLogValve.java:698)
		at app//org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:78)
		at app//org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:364)
		at app//org.apache.coyote.http11.Http11Processor.service(Http11Processor.java:624)
		at app//org.apache.coyote.AbstractProcessorLight.process(AbstractProcessorLight.java:65)
		at app//org.apache.coyote.AbstractProtocol$ConnectionHandler.process(AbstractProtocol.java:831)
		at app//org.apache.tomcat.util.net.Nio2Endpoint$SocketProcessor.doRun(Nio2Endpoint.java:1638)
		at app//org.apache.tomcat.util.net.SocketProcessorBase.run(SocketProcessorBase.java:49)
		at app//org.apache.tomcat.util.net.AbstractEndpoint.processSocket(AbstractEndpoint.java:1125)
		at app//org.apache.tomcat.util.net.Nio2Endpoint$Nio2SocketWrapper$2.completed(Nio2Endpoint.java:587)
		at app//org.apache.tomcat.util.net.Nio2Endpoint$Nio2SocketWrapper$2.completed(Nio2Endpoint.java:565)
		at java.base@11.0.11/sun.nio.ch.Invoker.invokeUnchecked(Invoker.java:127)
		at java.base@11.0.11/sun.nio.ch.Invoker$2.run(Invoker.java:219)
		at java.base@11.0.11/sun.nio.ch.AsynchronousChannelGroupImpl$1.run(AsynchronousChannelGroupImpl.java:112)
		at app//org.apache.tomcat.util.threads.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1191)
		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:61)
		at java.base@11.0.11/java.lang.Thread.run(Thread.java:829)
26-Oct-2021 10:26:55.350 INFO [main] org.apache.coyote.AbstractProtocol.pause Pausing ProtocolHandler ["http-nio2-127.0.0.1-auto-1-38877"]
26-Oct-2021 10:26:55.360 INFO [main] org.apache.catalina.core.StandardService.stopInternal Stopping service [Tomcat]
26-Oct-2021 10:26:55.379 INFO [main] org.apache.coyote.AbstractProtocol.stop Stopping ProtocolHandler ["http-nio2-127.0.0.1-auto-1-38877"]
26-Oct-2021 10:26:55.388 INFO [main] org.apache.coyote.AbstractProtocol.destroy Destroying ProtocolHandler ["http-nio2-127.0.0.1-auto-1-38877"]
26-Oct-2021 10:26:55.396 INFO [main] org.apache.catalina.startup.LoggingBaseTest.setUp Starting test case [testInterruption]
26-Oct-2021 10:26:55.398 INFO [main] org.apache.coyote.AbstractProtocol.init Initializing ProtocolHandler ["http-nio2-127.0.0.1-auto-2"]
26-Oct-2021 10:26:55.409 INFO [main] org.apache.catalina.core.StandardService.startInternal Starting service [Tomcat]
26-Oct-2021 10:26:55.410 INFO [main] org.apache.catalina.core.StandardEngine.startInternal Starting Servlet engine: [Apache Tomcat/8.5.72-dev]
26-Oct-2021 10:26:55.433 INFO [main] org.apache.coyote.AbstractProtocol.start Starting ProtocolHandler ["http-nio2-127.0.0.1-auto-2-42063"]
26-Oct-2021 10:26:58.432 WARNING [ContainerBackgroundProcessor[StandardEngine[Tomcat].StandardHost[localhost].StandardContext[]]] org.apache.catalina.valves.StuckThreadDetectionValve.notifyStuckThreadDetected Thread [http-nio2-127.0.0.1-auto-2-exec-2] (id=[35]) has been active for [2,988] milliseconds (since [10/26/21, 10:26 AM]) to serve the same request for [http://localhost:42063/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@11.0.11/java.lang.Thread.sleep(Native Method)
		at app//org.apache.catalina.valves.TestStuckThreadDetectionValve$StickingServlet.doGet(TestStuckThreadDetectionValve.java:156)
		at app//javax.servlet.http.HttpServlet.service(HttpServlet.java:655)
		at app//javax.servlet.http.HttpServlet.service(HttpServlet.java:764)
		at app//org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:231)
		at app//org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:166)
		at app//org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:197)
		at app//org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:97)
		at app//org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:542)
		at app//org.apache.catalina.valves.StuckThreadDetectionValve.invoke(StuckThreadDetectionValve.java:206)
		at app//org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:135)
		at app//org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:81)
		at app//org.apache.catalina.valves.AbstractAccessLogValve.invoke(AbstractAccessLogValve.java:698)
		at app//org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:78)
		at app//org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:364)
		at app//org.apache.coyote.http11.Http11Processor.service(Http11Processor.java:624)
		at app//org.apache.coyote.AbstractProcessorLight.process(AbstractProcessorLight.java:65)
		at app//org.apache.coyote.AbstractProtocol$ConnectionHandler.process(AbstractProtocol.java:831)
		at app//org.apache.tomcat.util.net.Nio2Endpoint$SocketProcessor.doRun(Nio2Endpoint.java:1638)
		at app//org.apache.tomcat.util.net.SocketProcessorBase.run(SocketProcessorBase.java:49)
		at app//org.apache.tomcat.util.net.AbstractEndpoint.processSocket(AbstractEndpoint.java:1125)
		at app//org.apache.tomcat.util.net.Nio2Endpoint$Nio2SocketWrapper$2.completed(Nio2Endpoint.java:587)
		at app//org.apache.tomcat.util.net.Nio2Endpoint$Nio2SocketWrapper$2.completed(Nio2Endpoint.java:565)
		at java.base@11.0.11/sun.nio.ch.Invoker.invokeUnchecked(Invoker.java:127)
		at java.base@11.0.11/sun.nio.ch.Invoker$2.run(Invoker.java:219)
		at java.base@11.0.11/sun.nio.ch.AsynchronousChannelGroupImpl$1.run(AsynchronousChannelGroupImpl.java:112)
		at app//org.apache.tomcat.util.threads.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1191)
		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:61)
		at java.base@11.0.11/java.lang.Thread.run(Thread.java:829)
26-Oct-2021 10:27:01.434 WARNING [ContainerBackgroundProcessor[StandardEngine[Tomcat].StandardHost[localhost].StandardContext[]]] org.apache.catalina.valves.StuckThreadDetectionValve$MonitoredThread.interruptIfStuck Thread [http-nio2-127.0.0.1-auto-2-exec-2] (id=[35]) has been interrupted because it was active for [5,990] milliseconds (since [10/26/21, 10:26 AM]) to serve the same request for [http://localhost:42063/myservlet] and was probably stuck (configured interruption threshold for this StuckThreadDetectionValve is [5] seconds).
	java.lang.Throwable
		at java.base@11.0.11/java.lang.Thread.sleep(Native Method)
		at app//org.apache.catalina.valves.TestStuckThreadDetectionValve$StickingServlet.doGet(TestStuckThreadDetectionValve.java:156)
		at app//javax.servlet.http.HttpServlet.service(HttpServlet.java:655)
		at app//javax.servlet.http.HttpServlet.service(HttpServlet.java:764)
		at app//org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:231)
		at app//org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:166)
		at app//org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:197)
		at app//org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:97)
		at app//org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:542)
		at app//org.apache.catalina.valves.StuckThreadDetectionValve.invoke(StuckThreadDetectionValve.java:206)
		at app//org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:135)
		at app//org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:81)
		at app//org.apache.catalina.valves.AbstractAccessLogValve.invoke(AbstractAccessLogValve.java:698)
		at app//org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:78)
		at app//org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:364)
		at app//org.apache.coyote.http11.Http11Processor.service(Http11Processor.java:624)
		at app//org.apache.coyote.AbstractProcessorLight.process(AbstractProcessorLight.java:65)
		at app//org.apache.coyote.AbstractProtocol$ConnectionHandler.process(AbstractProtocol.java:831)
		at app//org.apache.tomcat.util.net.Nio2Endpoint$SocketProcessor.doRun(Nio2Endpoint.java:1638)
		at app//org.apache.tomcat.util.net.SocketProcessorBase.run(SocketProcessorBase.java:49)
		at app//org.apache.tomcat.util.net.AbstractEndpoint.processSocket(AbstractEndpoint.java:1125)
		at app//org.apache.tomcat.util.net.Nio2Endpoint$Nio2SocketWrapper$2.completed(Nio2Endpoint.java:587)
		at app//org.apache.tomcat.util.net.Nio2Endpoint$Nio2SocketWrapper$2.completed(Nio2Endpoint.java:565)
		at java.base@11.0.11/sun.nio.ch.Invoker.invokeUnchecked(Invoker.java:127)
		at java.base@11.0.11/sun.nio.ch.Invoker$2.run(Invoker.java:219)
		at java.base@11.0.11/sun.nio.ch.AsynchronousChannelGroupImpl$1.run(AsynchronousChannelGroupImpl.java:112)
		at app//org.apache.tomcat.util.threads.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1191)
		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:61)
		at java.base@11.0.11/java.lang.Thread.run(Thread.java:829)
26-Oct-2021 10:27:01.441 INFO [main] org.apache.coyote.AbstractProtocol.pause Pausing ProtocolHandler ["http-nio2-127.0.0.1-auto-2-42063"]
26-Oct-2021 10:27:01.446 INFO [main] org.apache.catalina.core.StandardService.stopInternal Stopping service [Tomcat]
26-Oct-2021 10:27:01.449 INFO [main] org.apache.coyote.AbstractProtocol.stop Stopping ProtocolHandler ["http-nio2-127.0.0.1-auto-2-42063"]
26-Oct-2021 10:27:01.453 INFO [main] org.apache.coyote.AbstractProtocol.destroy Destroying ProtocolHandler ["http-nio2-127.0.0.1-auto-2-42063"]
------------- ---------------- ---------------

Testcase: testDetection took 8.782 sec
Testcase: testInterruption took 6.064 sec

Apache Gump, Gump, Apache, the Apache feather logo, and the Apache Gump project logos are trademarks of The Apache Software Foundation.

Last Updated: Tue, 26 Oct 2021 06:00:05 ().Python Logo