Too many connections 太多的异常什么原因

启动后,就报这个错误,实际上没做什么操作


-------------------

[WARN]-[Thread: Task-Thread-for-com.mchange.v2.async.ThreadPerTaskAsynchronousRunner@32f246b2]-[com.mchange.v2.resourcepool.BasicResourcePool$AcquireTask.run()]: com.mchange.v2.resourcepool.BasicResourcePool$AcquireTask@39736dd4 -- 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: 

com.mysql.jdbc.exceptions.jdbc4.MySQLNonTransientConnectionException: Data source rejected establishment of connection,  message from server: "Too many connections"

 


评论区

JFinal

2017-01-17 20:25

c3p0 尝试获取连接时数据库不给,因为数据库配置允许的连接过少,或者别的进程占用了一些连接

looking

2017-01-17 21:19

@JFinal 好的,我设置看看,谢谢!

looking

2017-01-17 21:20

@JFinal 对了,这个连接用完会自动释放吧,还是需要做什么操作?

热门反馈

扫码入社