你好,拜读了《Tomcat调优总结【内存和线程】》,对于:
acceptorThreadCount,用于接收连接的线程的数量,默认值是1。一般这个指需要改动的时候是因为该服务器是一个多核CPU,如果是多核 CPU 一般配置为 2.
这个说明似乎有误,官方文档中是这么说的:
acceptorThreadCount
The number of threads to be used to accept connections. Increase this value on a multi CPU machine, although you would never really need more than 2. Also, with a lot of non keep alive connections, you might want to increase this value as well. Default value is 1.
multi CPU,应该是“多颗CPU”,而你文章中写的是“多核CPU”,多核CPU和多颗应该是不一样的吧。不是很清楚tomcat处理时,是否把CPU核心数量当做单独处理单元了?