码迷,mamicode.com
首页 > 其他好文 > 详细

Data source rejected establishment of connection, message from server: "Too many connections"

时间:2017-08-02 15:07:36      阅读:337      评论:0      收藏:0      [点我收藏+]

标签:sql   led   max   asi   connect   lan   rac   log   ref   

 

 1 com.mchange.v2.resourcepool.BasicResourcePool(line/:1841) -
 2 com.mchange.v2.resourcepool.BasicResourcePool$AcquireTask@186e1f5a -- Acquisition Attempt Failed!!! Clearing pending acquires. While trying to acquire a needed new resource, we failed to succeed more than the maximum number of allowed acquisition attempts (30). Last acquisition attempt exception: 
 3 com.mysql.jdbc.exceptions.jdbc4.MySQLNonTransientConnectionException: Data source rejected establishment of connection,  message from server: "Too many connections"
 4     at sun.reflect.GeneratedConstructorAccessor11.newInstance(Unknown Source)
 5     at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45)
 6     at java.lang.reflect.Constructor.newInstance(Constructor.java:423)
 7     at com.mysql.jdbc.Util.handleNewInstance(Util.java:411)
 8     at com.mysql.jdbc.Util.getInstance(Util.java:386)
 9     at com.mysql.jdbc.SQLError.createSQLException(SQLError.java:1013)
10     at com.mysql.jdbc.SQLError.createSQLException(SQLError.java:987)
11     at com.mysql.jdbc.SQLError.createSQLException(SQLError.java:982)
12     at com.mysql.jdbc.MysqlIO.doHandshake(MysqlIO.java:1136)
13     at com.mysql.jdbc.ConnectionImpl.coreConnect(ConnectionImpl.java:2395)
14     at com.mysql.jdbc.ConnectionImpl.connectOneTryOnly(ConnectionImpl.java:2428)
15     at com.mysql.jdbc.ConnectionImpl.createNewIO(ConnectionImpl.java:2213)
16     at com.mysql.jdbc.ConnectionImpl.<init>(ConnectionImpl.java:797)
17     at com.mysql.jdbc.JDBC4Connection.<init>(JDBC4Connection.java:47)
18     at sun.reflect.GeneratedConstructorAccessor13.newInstance(Unknown Source)
19     at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45)
20     at java.lang.reflect.Constructor.newInstance(Constructor.java:423)
21     at com.mysql.jdbc.Util.handleNewInstance(Util.java:411)
22     at com.mysql.jdbc.ConnectionImpl.getInstance(ConnectionImpl.java:389)
23     at com.mysql.jdbc.NonRegisteringDriver.connect(NonRegisteringDriver.java:305)
24     at com.mchange.v2.c3p0.DriverManagerDataSource.getConnection(DriverManagerDataSource.java:134)
25     at com.mchange.v2.c3p0.WrapperConnectionPoolDataSource.getPooledConnection(WrapperConnectionPoolDataSource.java:182)
26     at com.mchange.v2.c3p0.WrapperConnectionPoolDataSource.getPooledConnection(WrapperConnectionPoolDataSource.java:171)
27     at com.mchange.v2.c3p0.impl.C3P0PooledConnectionPool$1PooledConnectionResourcePoolManager.acquireResource(C3P0PooledConnectionPool.java:137)
28     at com.mchange.v2.resourcepool.BasicResourcePool.doAcquire(BasicResourcePool.java:1014)
29     at com.mchange.v2.resourcepool.BasicResourcePool.access$800(BasicResourcePool.java:32)
30     at com.mchange.v2.resourcepool.BasicResourcePool$AcquireTask.run(BasicResourcePool.java:1810)
31     at com.mchange.v2.async.ThreadPerTaskAsynchronousRunner$TaskThread.run(ThreadPerTaskAsynchronousRunner.java:255)

 

Data source rejected establishment of connection, message from server: "Too many connections"

标签:sql   led   max   asi   connect   lan   rac   log   ref   

原文地址:http://www.cnblogs.com/xbq8080/p/7273670.html

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!