How to increase number of threads in tomcat thread pool?

后端 未结 3 2054
眼角桃花
眼角桃花 2020-11-29 03:26

i just want to know How to increase number of threads in tomcat thread pool ? and what number to set the max too, i don\'t know what\'s appropriate ?

3条回答
  •  眼角桃花
    2020-11-29 04:07

    Sounds like you should stay with the defaults ;-)

    Seriously: The number of maximum parallel connections you should set depends on your expected tomcat usage and also on the number of cores on your server. More cores on your processor => more parallel threads that can be executed.

    See here how to configure...

    Tomcat 9: https://tomcat.apache.org/tomcat-9.0-doc/config/executor.html

    Tomcat 8: https://tomcat.apache.org/tomcat-8.0-doc/config/executor.html

    Tomcat 7: https://tomcat.apache.org/tomcat-7.0-doc/config/executor.html

    Tomcat 6: https://tomcat.apache.org/tomcat-6.0-doc/config/executor.html

提交回复
热议问题