Tomcat - Configuring maxThreads and acceptCount in Http connector

后端 未结 3 885
执念已碎
执念已碎 2021-01-12 09:14

I currently have an application deployed using Tomcat that interacts with a Postgres database via JDBC. The queries are very expensive, so what I\'m seeing is a timeout caus

3条回答
  •  太阳男子
    2021-01-12 09:33

    Keeping maxActive value (of db connection pooling) lesser than maxThreads (i.e. number of concurrent threads) makes sense in most of the cases. You can set acceptCount to a higher value depending upon what traffic you are expecting in your website and how fast one request can be processed.

提交回复
热议问题