【发布时间】:2012-08-02 21:53:39
【问题描述】:
我有一个使用 c3p0 作为连接池的 Web 应用程序。我们使用hibernate作为orm工具。 最近,我们收到了连接超时异常。为了调试这些异常,我启用了 C3p0 的日志记录并在日志中获取了一些信息。任何人都可以帮助我完全理解它。
DEBUG 2012-08-05 14:43:52,590 [com.mchange.v2.async.ThreadPoolAsynchronousRunner$PoolThread-#0] com.mchange.v2.c3p0.stmt.GooGooStatementCache: checkinAll(): com.mchange.v2.c3p0.stmt.GlobalMaxOnlyStatementCache stats -- total size: 2; checked out: 0; num connections: 1; num keys: 2
从上面我可以观察到连接池的总大小是2。签出的连接数是0。对吗?而上面的num_connections和num keys是什么?
谢谢..
【问题讨论】:
标签: java spring hibernate connection c3p0