博客
关于我
强烈建议你试试无所不能的chatGPT,快点击我
Data source rejected establishment of connection, message from server: "Too many connections"
阅读量:6578 次
发布时间:2019-06-24

本文共 3020 字,大约阅读时间需要 10 分钟。

 出现这个错误,是因为连接数 大于 mysql的最大连接数,可通过修改配置文件来增大Mysql的最大连接数。

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.
(ConnectionImpl.java:797)17 at com.mysql.jdbc.JDBC4Connection.
(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)

 

转载地址:http://ceyno.baihongyu.com/

你可能感兴趣的文章
iOS socket通信,编解码,浮点型数据解析
查看>>
手把手教你如何新建scrapy爬虫框架的第一个项目(下)
查看>>
前端基础15:JS作用域基础
查看>>
Linux系统相关命令
查看>>
BATJ面试必会之 Spring 篇(一)
查看>>
表驱动法
查看>>
什么是企业内训
查看>>
firefox无法显示java插件plugin
查看>>
H3C设备之OSPF DR选举
查看>>
View控件Edittext属性
查看>>
List grantee right in oracle
查看>>
骨牌铺方格 ——解题报告
查看>>
Activity生命周期
查看>>
通过VBS编写自动输入账号和密码、自动登录程序的脚本
查看>>
MTK APSoC SDK MT7621编译固件的快速开始
查看>>
深度解析Istio系列之安全模块篇
查看>>
Linux 系统 审计
查看>>
JS -------------------设置弹出框位置屏幕的中间
查看>>
性能测试 vbs使用(一)
查看>>
46Exchange 2010升级到Exchange 2013-移除总部CAS2010
查看>>