SQLException: Couldn't get connection because we are at maximum connect"/>
java.sql.SQLException: Couldn't get connection because we are at maximum connect
java.sql.SQLException: Couldn't get connection because we are at maximum connection count (30/30) and there are none available报错,项目中实际碰到过。下面先讲讲所用到数据库连接池proxool,以下是它的一些基本配置,来源于官网:[b] maximum-active-time:[/b]
If the housekeeper comes across a thread that has been active for longer than this then it will kill it. So make sure you set this to a number bigger than your slowest expected response! [color=red]Default is 5 minutes[/color].
[b]maximum-connection-count:[/b]
The maximum number of connections to the database. [color=red]Default is 15[/color].
[b]maximum-connection-lifetime:[/b]
The maximum amount of time that a connection exists for before it is killed (milliseconds). [color=red]Default is 4 hours[/color].
[b]maximum-new-connections:[/b]
Deprecated. Use simultaneous-build-throttle instead.
[b]minimum-
更多推荐
java.sql.SQLException: Couldn't get connection because we are at maximum co
发布评论