Unable to get JDBC connection but only 10% of available connections are being used

送分小仙女□ 提交于 2019-12-08 13:15:18

问题


Here is exception I am getting

This is the configuration I am using in my c3p0

<property name="acquireIncrement">5</property>
        <property name="preferredTestQuery">SELECT 1</property>
        <property name="checkoutTimeout">2000</property>
        <property name="idleConnectionTestPeriod">30</property>
        <property name="initialPoolSize">5</property>
        <property name="maxIdleTime">18000</property>
        <property name="maxPoolSize">500</property>
        <property name="minPoolSize">5</property>
        <property name="maxStatements">20</property>
        <property name="testConnectionOnCheckin">true</property>
        <property name="unreturnedConnectionTimeout">60</property>
        <property name="debugUnreturnedConnectionStackTraces">true</property>

Screenshot of my current connection pool situation is below:

You can see in Image only 27 connections are currently present in connection pool, while my maxPoolSize is 500, still I am unable to make more connections.

Can someone figure it out while I am getting this exception?

来源:https://stackoverflow.com/questions/38994849/unable-to-get-jdbc-connection-but-only-10-of-available-connections-are-being-us

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!