Tomcat - Configuring maxThreads and acceptCount in Http connector

后端 未结 3 884
执念已碎
执念已碎 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:23

    Unless your application handles request in a matter where it directly connects to the database on a per http connection basis, then you should configure your JDBC connection pool based on what your database software is set to/ can handle and your maxthreads to what your application / hardware can handle.

提交回复
热议问题