OrientDB - The maximum pool size reached for this section.

Team

We have a one-page web application that uses the REST API suite. The REST API tier is based on Jersey , which simply calls the OrientDB REST API. We call OrientDB functions through the OrientDB REST APIs.

We use OrientDB 2.0.15

OrientDB continuously generates the following error, even with very few connections

[OClientConnectionManager]Caught exception
java.lang.IllegalStateException: You have reached maximum pool size for given partition
        at com.orientechnologies.common.concur.resource.OPartitionedObjectPool.acquire(OPartitionedObjectPool.java:100)
        at com.orientechnologies.orient.core.command.script.ODatabaseScriptManager.acquireEngine(ODatabaseScriptManager.java:91)
        at com.orientechnologies.orient.core.command.script.OScriptManager.acquireDatabaseEngine(OScriptManager.java:196)
        at com.orientechnologies.orient.core.command.script.OCommandExecutorFunction.executeInContext(OCommandExecutorFunction.java:72)
        at com.orientechnologies.orient.core.metadata.function.OFunction.executeInContext(OFunction.java:148)
        at com.orientechnologies.orient.server.network.protocol.http.command.all.OServerCommandAbstractLogic.execute(OServerCommandAbstractLogic.java:66)
        at com.orientechnologies.orient.server.network.protocol.http.ONetworkProtocolHttpAbstract.service(ONetworkProtocolHttpAbstract.java:176)
        at com.orientechnologies.orient.server.network.protocol.http.ONetworkProtocolHttpAbstract.execute(ONetworkProtocolHttpAbstract.java:581)
        at com.orientechnologies.common.thread.OSoftThread.run(OSoftThread.java:69)

We have the following property settings

<properties>
    <entry value="50" name="db.pool.min"/>
    <entry value="500" name="db.pool.max"/>
    <entry value="false" name="profiler.enabled"/>
    <entry value="info" name="log.console.level"/>
    <entry value="fine" name="log.file.level"/>
    <entry value="10000" name="storage.record.lockTimeout"/>
</properties>

Suppose that db.pool.minboth db.pool.maxspecify the minimum and maximum db instances that the server processes.

We also tried with the following properties:

  • db.pool.idleTimeout. , "- ". 5000
  • db.pool.idleCheckDelay. , " ". 5000

(. OGlobalConfiguration.java)

:

  • .
  • OrientDB REST API

.

+4
1
+4

Source: https://habr.com/ru/post/1612303/


All Articles