Search code examples
tomcat7threadpool

How to increase number of threads in tomcat thread pool?


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 ?


Solution

  • 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 10: https://tomcat.apache.org/tomcat-10.0-doc/config/executor.html

    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