Hi,

Running 0.9.7 from March 7 (I think; someone else configured this).

Running very short transactions (createEM, begin, find one instance, commit, close EM) I observe that connections are constantly being acquired and then closed (hundreds of times per second). Did I misconfigure the pool somehow?

These settings are in the persistence.xml,
<provider>org.apache.openjpa.persistence.PersistenceProviderImpl</ provider>
...
<property name="openjpa.ConnectionDriverName" value="org.apache.derby.jdbc.ClientDriver"/> <property name="openjpa.ConnectionURL" value="jdbc:derby://localhost:1527/pbdb;create=true;"/>
            <property name="openjpa.ConnectionUserName" value="ejb3"/>
            <property name="openjpa.ConnectionPassword" value="ejb3"/>

<property name="openjpa.ConnectionRetainMode" value="always"/> <property name="openjpa.ConnectionFactoryProperties" value="MaxActive=200,MaxIdle=200,MaxCachedStatements=250"/>

Thanks,

Craig

Craig Russell
DB PMC, OpenJPA PPMC
[EMAIL PROTECTED] http://db.apache.org/jdo


Attachment: smime.p7s
Description: S/MIME cryptographic signature

Reply via email to