草庐IT

debugUnreturnedConnectionStackTra

全部标签

java - 使用 'debugUnreturnedConnectionStackTraces' 调试连接丢失

我正在为我正在进行的项目修复连接超时问题。我们使用c3p0来管理连接池,使用hibernate作为orm工具。我们也使用Spring。为了查找是否有任何未返回的连接,我在我的c3p0配置中将debugUnreturnedConnectionStackTraces设置为true(不在c3p0属性中)。还有什么需要我做的吗?我是否还必须向我的lod4j.properties添加任何内容,或者是否足以将debugUnreturnedConnectionStackTraces设置为true?此外,我应该在c3p0属性中将debugUnreturnedConnectionStackTraces设