mysql 'Too many connections'

server端运行一段时间以后,数据库异常

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

原因:连接池中的连接没有关闭。
解决:我这里是 dao层的调用没有被事务管理,导致连接没有关闭。

猜你喜欢

转载自chenchangqun.iteye.com/blog/2097388
今日推荐