I am using Spring 3.0.5.RELEASE and Postgres 9.1. I am limiting a maximum number of connections in 17:
<bean id="dataSource" class="com.mchange.v2.c3p0.ComboPooledDataSource">
<property name="driverClass" value="${database.driver}" />
<property name="jdbcUrl" value="${database.url}" />
<property name="user" value="${database.username}" />
<property name="password" value="${database.password}" />
<property name="initialPoolSize" value="3" />
<property name="minPoolSize" value="1" />
<property name="maxPoolSize" value="17" />
</bean>
When my application gets to occupy all the connections, it just hangs, and doesn't cancel or accept more transactions. All processes in Postgres are in state "idle in transaction".
Thank you!