orientdb icon indicating copy to clipboard operation
orientdb copied to clipboard

OLockException errors

Open npvisual opened this issue 13 years ago • 6 comments

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.

npvisual avatar Oct 01 '13 23:10 npvisual

Are you sure you have in the try{}finally{} block the close of database once used?

lvca avatar Oct 01 '13 23:10 lvca

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.

npvisual avatar Oct 02 '13 00:10 npvisual

What release are you using?

lvca avatar Oct 02 '13 00:10 lvca

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 .

npvisual avatar Oct 02 '13 00:10 npvisual

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.

lvca avatar Oct 03 '13 14:10 lvca

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.

dxxr avatar Feb 21 '14 15:02 dxxr