肯定 Confluence 在數據庫鏈接池中校驗數據庫鏈接:html
<installation-directory>/conf/server.xml
文件(或者基於在那裏你配置你的數據源)。
...
<
Resource
name
=
"jdbc/confluence"
auth
=
"Container"
type
=
"javax.sql.DataSource"
username
=
"postgres"
password
=
"postgres"
driverClassName
=
"org.postgresql.Driver"
url
=
"jdbc:postgresql://localhost:5432/yourDatabaseName"
maxTotal
=
"60"
maxIdle
=
"20"
validationQuery
=
"select 1"
/>
...
|
conf/server.xml
你應該能夠從中斷的數據庫鏈接中從新得到全部的數據庫鏈接而不須要重啓 Confluence。java
https://www.cwiki.us/display/CONFLUENCEWIKI/Surviving+Database+Connection+Closuressql