Hi Riccardo,
This exception happen to avoid the application blocked forever in case
of deadlock, and actually we found some issues on the db pool in 1.7.*
that has been fixed in 1.7.10-SNAPSHOT, that should be released in the
next few days and is as usual backward compatible with every 1.7.*

bye
Emanuel

On 10/29/2014 04:59 PM, Riccardo Tasso wrote:
> Hi,
>  we are doing some stress test (Orient 1.7.8) and we have found some
> exception of this kind:
>
> |
> com.orientechnologies.common.concur.lock.OLockException: No more
> resources available in pool. Requested resource: plocal:/opt/my/graph
>         at
> com.orientechnologies.common.concur.resource.OResourcePool.getResource(OResourcePool.java:57)
>         at
> com.orientechnologies.common.concur.resource.OReentrantResourcePool.getResource(OReentrantResourcePool.java:63)
>         at
> com.orientechnologies.orient.core.db.ODatabasePoolAbstract.acquire(ODatabasePoolAbstract.java:149)
>         at
> com.orientechnologies.orient.core.db.ODatabasePoolAbstract.acquire(ODatabasePoolAbstract.java:134)
>         at
> com.orientechnologies.orient.core.db.ODatabasePoolBase.acquire(ODatabasePoolBase.java:103)
>         at
> com.tinkerpop.blueprints.impls.orient.OrientGraphFactory.getDatabase(OrientGraphFactory.java:132)
>         at
> com.tinkerpop.blueprints.impls.orient.OrientGraphFactory.getDatabase(OrientGraphFactory.java:118)
>         [...]
> |
>
> This is thrown by a db = pool.getDatabase();
>
> I expected the thread would be blocked untill the database is free,
> why there is an exception?
>
> Cheers,
>    Riccardo
>
>
> Il giorno martedì 28 ottobre 2014 11:50:00 UTC+1, Riccardo Tasso ha
> scritto:
>
>     Thanks Luca.
>
>     Riccardo
>
>     2014-10-28 11:33 GMT+01:00 Luca Garulli <[email protected]
>     <mailto:[email protected]>>:
>
>         Hey Riccardo,
>         while poolMinSize size is unused (yet), the poolMaxSize is the
>         maximum instances in the pool. If you have X concurrent
>         threads that need to access to the Graph, they can acquire a
>         new instance from the pool, use it and then close it at the end.
>
>         When X instances are all used, the X+1 thread waits for the
>         first available resource.
>
>         Lvc@
>
>
>         On 28 October 2014 11:29, Riccardo Tasso
>         <[email protected] <mailto:[email protected]>>
>         wrote:
>
>             I mean Database Pool, which I configure with:
>             orientFactory.setupPool(poolMinSize, poolMaxSize);
>
>             Cheers,
>                Riccardo
>
>             2014-10-28 11:17 GMT+01:00 Luca Garulli
>             <[email protected] <mailto:[email protected]>>:
>
>                 Hi Riccardo,
>                 Do you mean Database Pool or Connection Pool?
>
>                 Lvc@
>
>
>                 On 28 October 2014 08:23, Riccardo Tasso
>                 <[email protected]
>                 <mailto:[email protected]>> wrote:
>
>                     Anyone can answer please?
>
>                     Riccardo
>
>                     2014-10-23 11:10 GMT+02:00 Riccardo Tasso
>                     <[email protected]
>                     <mailto:[email protected]>>:
>
>                         Hi,
>                          I can't find in documentation a clear
>                         explanation of which is the meaning of Orient
>                         Pool in embedded mode (version 1.7.8).
>
>                         Is the pool size relevant, and if yes how
>                         could I tune it?
>
>                         Cheers,
>                            Riccardo
>                         -- 
>
>                         ---
>                         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]
>                         <mailto:[email protected]>.
>                         For more options, visit
>                         https://groups.google.com/d/optout
>                         <https://groups.google.com/d/optout>.
>
>
>                     -- 
>
>                     ---
>                     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]
>                     <mailto:[email protected]>.
>                     For more options, visit
>                     https://groups.google.com/d/optout
>                     <https://groups.google.com/d/optout>.
>
>
>                 -- 
>
>                 ---
>                 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]
>                 <mailto:[email protected]>.
>                 For more options, visit
>                 https://groups.google.com/d/optout
>                 <https://groups.google.com/d/optout>.
>
>
>             -- 
>
>             ---
>             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]
>             <mailto:[email protected]>.
>             For more options, visit https://groups.google.com/d/optout
>             <https://groups.google.com/d/optout>.
>
>
>         -- 
>
>         ---
>         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]
>         <mailto:[email protected]>.
>         For more options, visit https://groups.google.com/d/optout
>         <https://groups.google.com/d/optout>.
>
>
> -- 
>
> ---
> 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]
> <mailto:[email protected]>.
> For more options, visit https://groups.google.com/d/optout.

-- 

--- 
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.

Reply via email to