Java-proxool exception

Source: Internet
Author: User

using the PROXOOL,JDBC connection pool, you encounter an exception when you run a batch:

The Thread responsible was named ' thread-32′ and the last SQL it performed are unknown because the trace property is not E Nabled.


cause of the problem: after the SQL statement is run. This exception is thrown when the data is not returned in a long time, and is configured in Proxool.xml. For example the following (see the Red font section)

<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>

</proxool>


Consider increasing the value of this parameter. Suppose you use a configuration file. Then add proxool.maximum-active-time=900000 (15 minutes) to the Proxool configuration file. Unit is milliseconds! ) or the value you want.


Test Site: http://it.oyksoft.com/post/3983/

Java-proxool exception

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

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.