OLockException errors
We're seeing a lot of errors like this one when doing a flurry of db accesses : com.orientechnologies.common.concur.lock.OLockException: Not more resources available in pool. Requested resource: local:/home/ec2-user/install/db/project
We recently enabled transactionLogSync true transactionCommitSync true nonTransactionRecordUpdateSync true
but we're not sure we can pinpoint whether that's the issue or not. We've also increased the max size of the pool to 100 but no improvement with that.
Some more trace :
Caused by: com.orientechnologies.common.concur.lock.OLockException: Not more resources available in pool. Requested resource: local:/home/ec2-user/install/db/project at com.orientechnologies.common.concur.resource.OResourcePool.getResource(OResourcePool.java:46) at com.orientechnologies.orient.core.db.ODatabasePoolAbstract.acquire(ODatabasePoolAbstract.java:74) at com.orientechnologies.orient.core.db.ODatabasePoolAbstract.acquire(ODatabasePoolAbstract.java:59) at com.orientechnologies.orient.core.db.ODatabasePoolBase.acquire(ODatabasePoolBase.java:115)
Any ideas to point us in the right direction ?
Thanks, Nicolas.
Are you sure you have in the try{}finally{} block the close of database once used?
Yes, it looks like we do for every call to the pool. Our getConnection() call is followed by a try{} finally{} block where we close the db.
What release are you using?
1.5.1. But we are also seeing that with 1.5.0.
N. On Oct 1, 2013 7:20 PM, "Luca Garulli" [email protected] wrote:
What release are you using?
— Reply to this email directly or view it on GitHubhttps://github.com/orientechnologies/orientdb/issues/1724#issuecomment-25503731 .
We need a test case to reproduce it. Can you test a for look opening/closing the db to see if happens? We've few test cases like that and all pass.
In OrientDB v1.6.3 I've seen this exact kind of exception when trying to acquire pooled connections from an interrupted thread (see #1983) - in this case the cause of the OLockException would be an InterruptedException.