https://bz.apache.org/bugzilla/show_bug.cgi?id=66329
Bug ID: 66329 Summary: The Tomcat connection processing thread may exit abnormally Product: Tomcat 8 Version: 8.5.31 Hardware: PC OS: Linux Status: NEW Severity: major Priority: P2 Component: Catalina Assignee: dev@tomcat.apache.org Reporter: zhanyu...@sequoiadb.com Target Milestone: ---- Created attachment 38427 --> https://bz.apache.org/bugzilla/attachment.cgi?id=38427&action=edit A large number of connections enter close_wait In tomcat org.apache.tomcat.util.net.NioEndpoint$Poller processKey method of class, when in the process of selling Throwable handling, use ExpectionUtils. The handleThrowable method handles the exception, and the ExpectionUtils after capturing the Throwable process the logic as follows: When the Throwable implementation class is ThreadDeath or VirtualMachineError, the clientPoller thread exits by throwing an exception Our tomcat runs on linux and limits the maximum number of user threads. When the number of threads reaches the upper limit, tomcat cannot create new processing threads and throws OutOfMemoryError, which is a subclass of VirtualMachineError. The clientPoller thread exits without closing connections being processed. New requests come in and the Acceptor thread accepts requests. In this case, a large number of connections are in the close_wait state without clietPoller to process them -- You are receiving this mail because: You are the assignee for the bug. --------------------------------------------------------------------- To unsubscribe, e-mail: dev-unsubscr...@tomcat.apache.org For additional commands, e-mail: dev-h...@tomcat.apache.org