java-proxool 異常

來源:互聯網
上載者:User

標籤:ica   encoding   tracking   span   單位   rom   active   property   imu   

使用 proxool,JDBC串連池,進行批量啟動並執行時候遇到異常:

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&amp;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 異常

聯繫我們

該頁面正文內容均來源於網絡整理,並不代表阿里雲官方的觀點,該頁面所提到的產品和服務也與阿里云無關,如果該頁面內容對您造成了困擾,歡迎寫郵件給我們,收到郵件我們將在5個工作日內處理。

如果您發現本社區中有涉嫌抄襲的內容,歡迎發送郵件至: info-contact@alibabacloud.com 進行舉報並提供相關證據,工作人員會在 5 個工作天內聯絡您,一經查實,本站將立刻刪除涉嫌侵權內容。

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.