Hi all!
Sometimes I simple got the following exception:
com.orientechnologies.common.concur.lock.OLockException: Not more resources
available in pool. Requested resource: remote:localhost/xxxx
at
com.orientechnologies.common.concur.resource.OResourcePool.getResource(OResourcePool.java:46)
at
com.orientechnologies.orient.core.db.ODatabasePoolAbstract.acquire(ODatabasePoolAbstract.java:93)
at
com.orientechnologies.orient.core.db.ODatabasePoolAbstract.acquire(ODatabasePoolAbstract.java:78)
at
com.orientechnologies.orient.core.db.ODatabasePoolBase.acquire(ODatabasePoolBase.java:105)
at
com.tinkerpop.blueprints.impls.orient.OrientBaseGraph.<init>(OrientBaseGraph.java:121)
at
com.tinkerpop.blueprints.impls.orient.OrientTransactionalGraph.<init>(OrientTransactionalGraph.java:37)
at
com.tinkerpop.blueprints.impls.orient.OrientGraph.<init>(OrientGraph.java:54)
at
com.tinkerpop.blueprints.impls.orient.OrientGraphFactory.getTx(OrientGraphFactory.java:49)
I got a pool size of 20 :
OrientGraphFactory factory = new
OrientGraphFactory("remote:localhost/xxxx").setupPool(1, 20);
And I am pretty sure that all my calls are made inside a block like this:
OrientGraph graph = factory.getTx();
try{
...
} finally {
graph.shutdown();
}
I know that increasing the pool size will make this problem not occur so
often, but it is a kind of "masking" the real problem. Any ideas of what is
the root cause or how can I really solve this issue?
Thanks a lot!
--
---
You received this message because you are subscribed to the Google Groups
"OrientDB" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
For more options, visit https://groups.google.com/d/optout.