java.sql.SQLException: Couldn't get connection because we are at maximum connect

编程入门 行业动态 更新时间:2024-10-23 13:31:57

java.sql.<a href=https://www.elefans.com/category/jswz/34/1760837.html style=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

本文发布于:2024-02-17 04:00:39,感谢您对本站的认可!
本文链接:https://www.elefans.com/category/jswz/34/1692564.html
版权声明:本站内容均来自互联网,仅供演示用,请勿用于商业和其他非法用途。如果侵犯了您的权益请与我们联系,我们将在24小时内删除。
本文标签:SQLException   sql   java   connect   maximum

发布评论

评论列表 (有 0 条评论)
草根站长

>www.elefans.com

编程频道|电子爱好者 - 技术资讯及电子产品介绍!