apache - "Connection reset on log" from Commons DBCP -
i using spring, hibernate crud operations , using apache 'basicdatasource' connection pooling problem when use below following configuration in datasource
<property name="maxactive" value="100"/> <property name="maxwait" value="10000"/> <property name="removeabandoned" value="true"/> <property name="removeabandonedtimeout" value="60"/> <property name="logabandoned" value="true"/> <property name="maxidle" value="10"/>
than after using connections m getting error of "connection reset on log" takes long time back.
and if m removing following lines datasource
<property name="removeabandoned" value="true"/> <property name="removeabandonedtimeout" value="60"/> <property name="logabandoned" value="true"/>
and adding below line sessionfactory(hibernateproperties)
<prop key="hibernate.connection.release_mode">after_statement</prop>
than getting no error on console problem uses connection , close completes.
Comments
Post a Comment