データソースの idle-timeout-minutes はどのような設定ですか?
Issue
- データソース設定における
idle-timeout-minutesは何ですか? idle-timeout-minutesで指定された時間の後でコネクションが切断されないのはなぜですか?max-pool-sizeおよびmin-pool-sizeを設定していないデータソースに対してDestroyedCountが常に 0 に設定されているのはなぜですか?idle-timeout-minutesを使用してアイドル状態のコネクションを切断していますが、以下のエラーが表示されます。- データソース設定における
idle-timeout-minutesは何ですか?
IO Error:End of TNS data channel; nested exception is java.sql.SQLRecoverableException:IO Error:End of TNS data channel
以下が続きます。
Closed Connection; nested exception is java.sql.SQLRecoverableException:Closed Connection
- データソースに
idle timeoutを設定するにはどうしたら良いですか? - 以下のエラーが表示されるのはなぜですか?
<TIMESTAMP> TRACE [org.jboss.jca.core.connectionmanager.pool.strategy.OnePool] (IdleRemover) Destroying timedout connection org.jboss.jca.core.connectionmanager.listener.TxConnectionListener@3b729fa1[state=NORMAL managed connection=org.jboss.jca.adapters.jdbc.local.LocalManagedConnection@624e2184 connection handles=0 lastUse=1388075895091 trackByTx=false pool=org.jboss.jca.core.connectionmanager.pool.strategy.OnePool@42b996d7 pool internal context=SemaphoreArrayListManagedConnectionPool@3a6f01bf[pool=<POOL NAME>]
Environment
- Red Hat JBoss Enterprise Application Platform (EAP)
- 5.x
- -ds.xml に定義された
idle-timeout-minutes
- -ds.xml に定義された
- 6.x
jboss-as-resource-adapters_1_0.xsd、jboss-as-datasources_1_0.xsd、jboss-as-datasources_1_1.xsdに定義されたidle-timeout-minutes
- 5.x
Subscriber exclusive content
A Red Hat subscription provides unlimited access to our knowledgebase of over 48,000 articles and solutions.
Welcome! Check out the Getting Started with Red Hat page for quick tours and guides for common tasks.
