zoukankan      html  css  js  c++  java
  • java-proxool 异常

    使用 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/

  • 相关阅读:
    Girls and Boys
    Kindergarten
    codevs 2822 爱在心中
    Popular Cows
    QWQ
    2488 绿豆蛙的归宿(拓扑+dp)
    P1119 灾后重建
    Mr. Frog’s Game
    Basic Data Structure
    A strange lift
  • 原文地址:https://www.cnblogs.com/jhcelue/p/6978963.html
Copyright © 2011-2022 走看看