在下面的配置中,如果我错过了初始,最大,最小池大小. c3p0中的默认连接池大小是多少?
<bean class="com.mchange.v2.c3p0.ComboPooledDataSource" destroy-method="close" id="dataSource"> <property name="driverClass" value="${dbDriver}"/> <property name="jdbcUrl" value="${dbURL}"/> <property name="user" value="${dbUsername}"/> <property name="password" value="${dbPassword}"/> <property name="initialPoolSize" value="5"/> <property name="maxPoolSize" value="50"/> <property name="minPoolSize" value="5"/> <property name="maxIdleTime" value="3000"/> </bean>
解决方法
The InitialPoolSize is 3 by default.
http://www.mchange.com/projects/c3p0/#initialPoolSize
http://javatech.org/2007/11/c3p0-connectionpool-configuration-rules-of-thumb/