我是靠谱客的博主 天真铃铛,最近开发中收集的这篇文章主要介绍Couldn't get connection because we are at maximum connection count (150/150) and there are none 异常解决...,觉得挺不错的,现在分享给大家,希望可以做个参考。
概述
系统运行一段时间后发现出现这样的异常:
Couldn't get connection because we are at maximum connection count (150/150) and there are none available
解决方案:
1、修改连接池的最大的连接数:
<maximum-connection-count>1000</maximum-connection-count>
2、
更改hibernate.connection.release_mode配置的模式为:after_transaction
Hibernate 的连接释放模式:hibernate.connection.release_mode 有三个选择:after_statement/after_transaction/on_close,默认的是on_close所以,这里要改成after_transaction
<prop key="hibernate.connection.release_mode">after_transaction</prop>
最后
以上就是天真铃铛为你收集整理的Couldn't get connection because we are at maximum connection count (150/150) and there are none 异常解决...的全部内容,希望文章能够帮你解决Couldn't get connection because we are at maximum connection count (150/150) and there are none 异常解决...所遇到的程序开发问题。
如果觉得靠谱客网站的内容还不错,欢迎将靠谱客网站推荐给程序员好友。
本图文内容来源于网友提供,作为学习参考使用,或来自网络收集整理,版权属于原作者所有。
发表评论 取消回复