Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
据我所知,一旦启动 Tomcat 服务器,它将启动大约 250 个线程。假设我们指定 25 是线程池执行器中的线程大小。所以现在 tomcat 中的总线程数是 250 + 25 还是只有 250 个线程,其中还包括 25 个线程?
问候, 萨西什
执行器将创建 minSpareThreads 参数中指定的线程数。如果未指定连接器使用执行器,则连接器可能会创建其他线程。除此之外,Tomcat 将为其内部目的创建线程。