com.mysql.jdbc.exceptions.jdbc4.MySQLNonTransientConnectionException: Too many connections
show full processlist:查看有多少个线程实例
service mysqld stop
service mysqld start
show global variables like 'wait_timeout'
28800秒 = 8小时
show global variables like 'max_connections'
可以设置global
set global wait_timeout = 200;
也可以在my.cnf修改
wait_timeout=100
interactive_timeout=100
java连接mysql 连接数太多
猜你喜欢
转载自zhangchengtest.iteye.com/blog/2232417
今日推荐
周排行