proxool非常容易忽视的异常

本文详细介绍了 Proxool 数据源中 getSimultaneousBuildThrottle 和 getMinimumConnectionCount 方法的作用。前者限制了同时创建数据库连接的数量以防过载,后者确保了即使没有活动请求也维持最低数量的打开连接。

地址是:

http://proxool.sourceforge.net/api-dev/org/logicalcobwebs/proxool/ProxoolDataSource.html

片段

getSimultaneousBuildThrottle

int getSimultaneousBuildThrottle()
In order to prevent overloading, this is the maximum number of connections that you can have that are in the progress of being made. That is, ones we have started to make but haven't finished yet.


getMinimumConnectionCount

int getMinimumConnectionCount()
The minimum number of connections we will keep open, regardless of whether anyone needs them or not.

不设置,或者设置错误,出现的现象

SQLException:We are already in the process of making 11 connections and the number of simultaneous builds has been throttled to 10

然后一直抱这个错误,网站停止任何更改的数据库访问。

评论
成就一亿技术人!
拼手气红包6.0元
还能输入1000个字符
 
红包 添加红包
表情包 插入表情
 条评论被折叠 查看
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值