java-proxool 異常
The Thread responsible was named ‘Thread-32′, but the last SQL it performed is unknown because the trace property is not enabled.
問題原因:sql語句運行後。長時間未返回數據,則拋出此異常,此時間再proxool.xml中有配置。例如以下(詳見紅色字體部分)
<proxool>
<alias>liveEpg</alias>
<driver-url>jdbc:mysql://127.0.0.1:3306/liveEpg?useUnicode=true&characterEncoding=UTF-8
</driver-url>
<driver-class>com.mysql.jdbc.Driver</driver-class>
<driver-properties>
<property name="user" value="root" />
<property name="password" value="root" />
</driver-properties>
<maximum-connection-count>30</maximum-connection-count>
<minimum-connection-count>1</minimum-connection-count>
<maximum-active-time>900000</maximum-active-time>
<house-keeping-test-sql>select CURRENT_DATE</house-keeping-test-sql>
</proxool>
考慮加大這個參數的值。假設使用配置文件的話。那麽就在proxool的配置文件裏加上proxool.maximum-active-time=900000(15分鐘。單位是毫秒!)或者你所想要的值。
參考站點:http://it.oyksoft.com/post/3983/
java-proxool 異常