Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
プールの設定のうちjdbc、1 秒以上実行される SQL クエリを強制終了するのに役立つのはどれですか?
jdbc
私が言うとき、ディレクトリ内のtomcat jdbc poolリソースを意味します。context.xml/tomcat/conf/
tomcat jdbc pool
context.xml
/tomcat/conf/
Tomcat プールは、これを行うためのすぐに使えるインターセプターを提供しているようです。見る...
https://tomcat.apache.org/tomcat-7.0-doc/jdbc-pool.html#org.apache.tomcat.jdbc.pool.interceptor.QueryTimeoutInterceptor
これらのインターセプターのいずれかを構成に追加できるはずです
(注: このドキュメントでは、クエリのタイムアウトを強制するのは JDBC ドライバー次第であると述べています。 )