【发布时间】:2013-12-22 11:13:23
【问题描述】:
<Resource name="jdbc/name" auth="Container" type="javax.sql.DataSource"
maxActive="100" maxIdle="30" maxWait="10000"
username="root" password="root" driverClassName="com.mysql.jdbc.Driver"
url="jdbc:mysql:url?autoReconnect=true"/>
我在Tomcat服务器中使用上述语句创建了连接池。
一些 android 应用程序正在使用 Web 服务与我的应用程序连接。通过 Web 服务,我正在发送和接收一些数据。 我收到错误
SQLState: null
[2013-12-05 14:13:06,156]ERROR069688[http-8080-10] - org.hibernate.util.JDBCExceptionReporter.logExceptions(JDBCExceptionReporter.java:78) -
Cannot get a connection, pool error Timeout waiting for idle object
我看到了Connection Pool Exception: Cannot get a connection, pool error Timeout waiting for idle object。
但我不知道。
这是什么原因。
提前谢谢...
【问题讨论】:
-
能否请您发布您的服务器连接maxThread count,服务器级别的最大线程数与jdbc级别的比率是多少?