系統運作一段時間後發現出現這樣的異常:
couldn't get connection because we are at maximum connection count (150/150) and there are none available
解決方案:
1、修改連接配接池的最大的連接配接數:
2、更改hibernate.connection.release_mode配置的模式為:after_transaction
hibernate 的連接配接釋放模式:hibernate.connection.release_mode 有三個選擇:after_statement/after_transaction/on_close,預設的是on_close是以,這裡要改成after_transaction