5
回答
C3P0连接池总是报错 求正确配置
滴滴云服务器,限时包月0.9元,为开发者而生>>>   
配置了C3P0 ,启动服务报错

java.sql.SQLException: An attempt by a client to checkout a Connection has timed out.
at com.mchange.v2.sql.SqlUtils.toSQLException(SqlUtils.java:118)
at com.mchange.v2.sql.SqlUtils.toSQLException(SqlUtils.java:77)
at com.mchange.v2.c3p0.impl.C3P0PooledConnectionPool.checkoutPooledConnection(C3P0PooledConnectionPool.java:688)
at com.mchange.v2.c3p0.impl.AbstractPoolBackedDataSource.getConnection(AbstractPoolBackedDataSource.java:140)
at com.tutugui.common.DBManager.getConnection(DBManager.java:71)
at com.tutugui.common.GuangGaoDB.getAllSlide(GuangGaoDB.java:20)
at com.tutugui.common.IndexAction.index(IndexAction.java:39)

这个几个参数没配置好性能也有影响

举报
红番茄
发帖于3年前 5回/2K+阅
顶部