The Oracle Application Server performance guide for version 10g Release 3 (10.1.3.1) provides final information on how to optimize connection pool settings .
The information is useful for almost all scenarios associated with an application that uses a connection pool to manage connections to an Oracle database, rather than using the application server used.
For example, it is always recommended that you set a value for the minimum pool size. As for the maximum pool size, the value should not be clearly high, as this may load the listener, especially if the application tends not to close the connections, which leads to a leak.
It is preferable to set a reasonable value for the statement cache, since this allows you to cache prepared statements, which can improve performance.
Timeouts should also be environmentally friendly. For example, the connection wait timeout should not be zero in most cases, as this can cause SQLExceptions when physical connections cannot be initialized in the pool for a sufficient interval. The inactivity timeout should be large enough so that the connections are removed only after a sufficient length of inactivity too low a value will cause physical connections to be created and dropped too often.
EDIT: The guide provided in the Performance Guide belongs to the oracle.jdbc.pool.OracleDataSource class, which uses the Oracle 10g application server for managed data sources for an Oracle database. Most of them are, of course, ported to the OracleConnectionPoolData source.
Vineet reynolds
source share