C3P0 Spring Hibernate: Pool maxed out. How to debug?
问题 I have a Spring Hibernate application on Tomcat. Connection pool is C3P0 I am rapidly encountering a thread pool maxed out warning from C3P0. Then all requests to the webapp hang. I am still assuming that somewhere in the code I have missed an @Transaction annotation. I want to debug my code. Question: Can I access the connection pool via code so I can debug when a connection is released and when it is not released? UPDATE: Current c3p0 config: <!-- Hibernate --> <bean id="dataSource" class=