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]>:
>
>> 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]>
>> 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]>:
>>>
>>>> Hi Riccardo,
>>>> Do you mean Database Pool or Connection Pool?
>>>>
>>>> Lvc@
>>>>
>>>>
>>>> On 28 October 2014 08:23, Riccardo Tasso <[email protected]>
>>>> wrote:
>>>>
>>>>> Anyone can answer please?
>>>>>
>>>>> Riccardo
>>>>>
>>>>> 2014-10-23 11:10 GMT+02:00 Riccardo Tasso <[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].
>>>>>> 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.
>>>>>
>>>>
>>>> --
>>>>
>>>> ---
>>>> 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.
>>>>
>>>
>>> --
>>>
>>> ---
>>> 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.
>>>
>>
>> --
>>
>> ---
>> 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.
>>
>
>
--
---
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.