On 27/10/2021 02:58, Poison wrote:
Ok, I'm just curious, because org.apache.catalina.tribes.util.ExecutorFactory.TribesThreadPoolExecutor inherits java.util.concurrent.ThreadPoolExecutor but org.apache.tomcat.util.threads.ThreadPoolExecutor does not.
They are implementing different behaviours.
Similarly, in the open source project dubbo, EagerThreadPoolExecutor inherits java.util.concurrent.ThreadPoolExecutor to achieve similar functions as the tomcat thread pool. https://github.com/apache/dubbo/blob/dubbo-2.7.5/dubbo-common/src/main/java/org/apache/dubbo/common/threadpool/support/eager/EagerThreadPoolExecutor.java#L30
The Dubbo implementation does not appear to achieve the behaviour Tomcat requires.
Mark --------------------------------------------------------------------- To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org