at oracle.jbo.server.DBSerializer.passivateRootAM(DBSerializer.java:268) Truncated. see log file for complete stacktrace Caused By: weblogic.jdbc.extensions.PoolLimitSQLException: weblogic.common.resourcepool.ResourceLimitException: No resources currently available in pool ApplicationDB to allocate to applications, please increase the size of the pool and retry..
You have a need to tune your JDBC Connection Pool. In this article, we show you how to validate the issue and how to fix it.
JDBC Connection Pools
Connections to a database are expensive to create, which it involves creating a process on the database. A connection pool can be maintained so that the connections can be reused when future requests to the database are required.
In Java programming paradigm, a Java DataBase Connectivity (JDBC) resource (or data source) provides applications with the means of connecting to a database. A JDBC connection pool contains a group of JDBC connections that are created when the connection pool is registered.
- All JDBC connections come from the application server’s pool
- J2SE with JPA
- JPA providers transparently creates a connection pool for Java SE programs and you can configure the connection pool within the persistence.xml file.
How to Validate the Issue?
As suggested in the message, you should tune JDBC Connection Pool used by JDBC Data Source named "ApplicationDB". In this article:
- Waiting For Connection Failure Total
How to Fix the Issue?
You can tune JDBC Connection Pool from the WebLogic Server Administration Console or you can modify JDBC configuration file used by data source "ApplicationDB" directly. But, before you modify the configuration file, you need to shut down servers first.
JDBC configuration files can be located here:
For example, the one for the ApplicationDB data source is named ApplicationDB-8936-jdbc.xml in our application (ATG CRMDemo).
After trial-and-errors, we have found the following settings are good for our application (note that each application has specific needs and depends on the hardware too):
<test-table-name>SQL SELECT 1 FROM FND_DUAL</test-table-name>
- Monitoring WebLogic JDBC Connection Pool at Runtime
- Monitoring WebLogic Server Thread Pool at Runtime
- Professional Oracle WebLogic Server by Robert Patrick, Gregory Nyberg, and Philip Aston