地址是:
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
然后一直抱这个错误,网站停止任何更改的数据库访问。
本文详细介绍了 Proxool 数据源中 getSimultaneousBuildThrottle 和 getMinimumConnectionCount 方法的作用。前者限制了同时创建数据库连接的数量以防过载,后者确保了即使没有活动请求也维持最低数量的打开连接。
5663

被折叠的 条评论
为什么被折叠?



