Limiting connections to the PegaRULES database
When started, the Pega Platform opens two connections to the PegaRULES database. To provide good response to requestors, the system uses a pool of connections over time.
In most cases, the pool is created and managed by the application server, not by the Pega Platform, however, you can control the size of the pool and the timeout interval.
If database access is needed when all existing connections are busy, the system creates an additional connection. Connections remain open until the Pega Platform is stopped, or until they are idle for 5 minutes or longer. The value of IdleConnectionTimeout in the prconfig.xml file defines the interval, in seconds, after which an idle connection is marked to be closed.
As initially installed, the system does not limit the number of open connections that can be created. You can limit the size of this pool using an optional setting in the prconfig.xml file:
If the limit is reached and all connections are busy when an additional database request
arrives, the requestor waits. If a connection is not available after 10 seconds (or the
interval set in the maxConnectionsTimeout
value), a Java
DatabaseException
is thrown.
For more information, see the Pega Community article How to set the maximum number of JDBC connections to the PegaRULES database.