Hibernate--Failure checking settings for database connection pool

Source: Internet
Author: User
Tags time interval
<property name= "Testonborrow" value= "true"/> <!--  When a connection is made to a database connection pool, checking its validity will affect some performance-       < Property Name= "Testwhileidle" value= "true"/> <!--evict timed thread for asynchronous TimerTask control  Timed the link in the thread pool Validateobject checksum       <property name= "Timebetweenevictionrunsmillis" value= "25200000"/> <!--failure check thread run time interval (mm) is greater than 0 to turn on evict check thread--       <property name= "validationquery" value= "Select 1"/> <!- -Check sql-->

Note: MySQL is the default 8-hour release connection, and the database cannot connect to a socket exception if no failure is checked

Hibernate--Failure checking settings for database connection pool

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.