How to increase number of threads in tomcat thread pool?

后端 未结 3 2052
眼角桃花
眼角桃花 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:02

    You would have to tune it according to your environment.

    Sometimes it's more useful to increase the size of the backlog (acceptCount) instead of the maximum number of threads.

    Say, instead of

    you use

    you can get much better performance in some cases, cause there would be less threads disputing the resources and the backlog queue would be consumed faster.

    In any case, though, you have to do some benchmarks to really know what is best.

提交回复
热议问题