An attempt by a client to checkout a Connection have timed out.

Source: Internet
Author: User

caused by:java.sql.SQLException:An attempt by a client to checkout a Connection have timed out.
At Com.mchange.v2.sql.SqlUtils.toSQLException (sqlutils.java:106)
At Com.mchange.v2.sql.SqlUtils.toSQLException (sqlutils.java:65)
At Com.mchange.v2.c3p0.impl.C3P0PooledConnectionPool.checkoutPooledConnection (c3p0pooledconnectionpool.java:527 )
At Com.mchange.v2.c3p0.impl.AbstractPoolBackedDataSource.getConnection (abstractpoolbackeddatasource.java:128)
At Org.springframework.jdbc.datasource.DataSourceUtils.doGetConnection (datasourceutils.java:113)
At Org.springframework.jdbc.datasource.DataSourceUtils.getConnection (datasourceutils.java:79)
... 5 more
caused by:com.mchange.v2.resourcepool.timeoutexception:a client timed out whilst waiting to acquire A resource from COM.M Change.v2.resourcepool.basicresourcepool@2020851–timeout at Awaitavailable ()
At Com.mchange.v2.resourcepool.BasicResourcePool.awaitAvailable (basicresourcepool.java:1317)
At Com.mchange.v2.resourcepool.BasicResourcePool.prelimCheckoutResource (basicresourcepool.java:557)
At Com.mchange.v2.resourcepool.BasicResourcePool.checkoutResource (basicresourcepool.java:477)
At Com.mchange.v2.c3p0.impl.C3P0PooledConnectionPool.checkoutPooledConnection (c3p0pooledconnectionpool.java:525 )
... 8 more

Using the C3P0 link pool when reported errors, check that the concurrency is too large when the time will occur, the solution is to change the property in the configuration file name= "Acquireincrement" value= "5", when the link is exhausted c3p0 one-time access to the number of connections. If not configured, the default is 3

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.