【发布时间】:2015-05-13 10:05:00
【问题描述】:
所以我正在研究 c3p0 API 来调试我们的一个生产问题,该问题导致在检查连接时出现堆栈溢出错误。
我在BasicResourcePool类的checkoutResource方法下面找到了cmets:
/*
* This function recursively calls itself... under nonpathological
* situations, it shouldn't be a problem, but if resources can never
* successfully check out for some reason, we might blow the stack...
*
* by the semantics of wait(), a timeout of zero means forever.
*/
我想知道这个池中的资源永远无法成功签出的原因可能是什么。
答案可能会帮助我了解我的应用程序中可能出现的问题。
【问题讨论】:
标签: java connection stack-overflow connection-pooling c3p0