C3p0指定最大和最小空闲连接

发布于 2024-12-10 17:45:45 字数 220 浏览 4 评论 0原文

DBCP 让您指定空闲连接的最小和最大数量 查看链接

我找不到C3p0 中有类似的选项。我可以指定最大和最小池大小,但似乎就是这样。有没有办法在 C3p0 中指定这一点?如果没有,有谁知道 C3p0 是否有最大/最小空闲连接的默认值,或者它不限制它们?

DBCP let's you specify a min and max number for Idle connections See Link

I can't find a similar option in C3p0. I can specify a max and min pool size, but that appears to be it. Is there a way to specify this in C3p0? If not, does anyone know if C3p0 has a default for max/min idle connections, or does it not limit them?

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

此刻的回忆 2024-12-17 17:45:45

据我所知,c3p0 在未使用的连接过期之前限制时间
该时间由 maxIdleTime 参数配置。

As I know c3p0 limits time before unused connection being expired.
This time is configured with maxIdleTime parameter.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文