skip to main content
Troubleshooting the OpenAccess SDK Clients : Troubleshooting the JDBC Client : DataDirect Spy : Pool Manager Trace File Example
 

Pool Manager Trace File Example

The following example includes footnotes to explain the characteristics of a DataDirect Connection Pool Manager trace file.
jdbc/openAccessPool: *** ConnectionPool Created
(jdbc/openAccessPool,
com.ddtek.jdbcx.openaccess.OpenAccessDataSource@1835282, 5, 5, 10, scott)1
jdbc/openAccessPool: Number pooled connections = 0.
jdbc/openAccessPool: Number free connections = 0.
 
jdbc/openAccessPool: Enforced minimum!2
NrFreeConnections was: 0
jdbc/openAccessPool: Number pooled connections = 5.
jdbc/openAccessPool: Number free connections = 5.
 
jdbc/openAccessPool: Reused free connection.3
jdbc/openAccessPool: Number pooled connections = 5.
jdbc/openAccessPool: Number free connections = 4.
 
jdbc/openAccessPool: Reused free connection.
jdbc/openAccessPool: Number pooled connections = 5.
jdbc/openAccessPool: Number free connections = 3.
 
jdbc/openAccessPool: Reused free connection.
jdbc/openAccessPool: Number pooled connections = 5.
jdbc/openAccessPool: Number free connections = 2.
 
jdbc/openAccessPool: Reused free connection.
jdbc/openAccessPool: Number pooled connections = 5.
jdbc/openAccessPool: Number free connections = 1.
 
jdbc/openAccessPool: Reused free connection.
jdbc/openAccessPool: Number pooled connections = 5.
jdbc/openAccessPool: Number free connections = 0.
 
jdbc/openAccessPool: Created new connection.4
jdbc/openAccessPool: Number pooled connections = 6.
jdbc/openAccessPool: Number free connections = 0.
 
jdbc/openAccessPool: Created new connection.
jdbc/openAccessPool: Number pooled connections = 7.
jdbc/openAccessPool: Number free connections = 0.
 
jdbc/openAccessPool: Created new connection.
jdbc/openAccessPool: Number pooled connections = 8.
jdbc/openAccessPool: Number free connections = 0.
 
jdbc/openAccessPool: Created new connection.
jdbc/openAccessPool: Number pooled connections = 9.
jdbc/openAccessPool: Number free connections = 0.
 
jdbc/openAccessPool: Created new connection.
jdbc/openAccessPool: Number pooled connections = 10.
jdbc/openAccessPool: Number free connections = 0.
 
jdbc/openAccessPool: Created new connection.
jdbc/openAccessPool: Number pooled connections = 11.
jdbc/openAccessPool: Number free connections = 0.
 
jdbc/openAccessPool: Connection was closed and added to the cache.5
jdbc/openAccessPool: Number pooled connections = 11.
jdbc/openAccessPool: Number free connections = 1.
 
jdbc/openAccessPool: Connection was closed and added to the cache.
jdbc/openAccessPool: Number pooled connections = 11.
jdbc/openAccessPool: Number free connections = 2.
 
jdbc/openAccessPool: Connection was closed and added to the cache.
jdbc/openAccessPool: Number pooled connections = 11.
jdbc/openAccessPool: Number free connections = 3.
 
jdbc/openAccessPool: Connection was closed and added to the cache.
jdbc/openAccessPool: Number pooled connections = 11.
jdbc/openAccessPool: Number free connections = 4.
 
jdbc/openAccessPool: Connection was closed and added to the cache.
jdbc/openAccessPool: Number pooled connections = 11.
jdbc/openAccessPool: Number free connections = 5.
 
jdbc/openAccessPool: Connection was closed and added to the cache.
jdbc/openAccessPool: Number pooled connections = 11.
jdbc/openAccessPool: Number free connections = 6.
 
jdbc/openAccessPool: Connection was closed and added to the cache.
jdbc/openAccessPool: Number pooled connections = 11.
jdbc/openAccessPool: Number free connections = 7.
 
jdbc/openAccessPool: Connection was closed and added to the cache.
jdbc/openAccessPool: Number pooled connections = 11.
jdbc/openAccessPool: Number free connections = 8.
 
jdbc/openAccessPool: Connection was closed and added to the cache.
jdbc/openAccessPool: Number pooled connections = 11.
jdbc/openAccessPool: Number free connections = 9.
 
jdbc/openAccessPool: Connection was closed and added to the cache.
jdbc/openAccessPool: Number pooled connections = 11.
jdbc/openAccessPool: Number free connections = 10.
 
jdbc/openAccessPool: Connection was closed and added to the cache.
jdbc/openAccessPool: Number pooled connections = 11.
jdbc/openAccessPool: Number free connections = 11.
 
jdbc/openAccessPool: Enforced minimum!6
NrFreeConnections was: 11
jdbc/openAccessPool: Number pooled connections = 11.
jdbc/openAccessPool: Number free connections = 11.
 
jdbc/openAccessPool: Enforced maximum!7
NrFreeConnections was: 11
jdbc/openAccessPool: Number pooled connections = 10.
jdbc/openAccessPool: Number free connections = 10.
 
jdbc/openAccessPool: Enforced minimum!
NrFreeConnections was: 10
jdbc/openAccessPool: Number pooled connections = 10.
jdbc/openAccessPool: Number free connections = 10.
 
jdbc/openAccessPool: Enforced maximum!
NrFreeConnections was: 10
jdbc/openAccessPool: Number pooled connections = 10.
jdbc/openAccessPool: Number free connections = 10.
 
jdbc/openAccessPool: Enforced minimum!
NrFreeConnections was: 10
jdbc/openAccessPool: Number pooled connections = 10.
jdbc/openAccessPool: Number free connections = 10.
 
jdbc/openAccessPool: Enforced maximum!
NrFreeConnections was: 10
jdbc/openAccessPool: Number pooled connections = 10.
jdbc/openAccessPool: Number free connections = 10.
 
jdbc/openAccessPool: Dumped free connection.8
jdbc/openAccessPool: Number pooled connections = 9.
jdbc/openAccessPool: Number free connections = 9.
 
jdbc/openAccessPool: Dumped free connection.
jdbc/openAccessPool: Number pooled connections = 8.
jdbc/openAccessPool: Number free connections = 8.
 
jdbc/openAccessPool: Dumped free connection.
jdbc/openAccessPool: Number pooled connections = 7.
jdbc/openAccessPool: Number free connections = 7.
 
jdbc/openAccessPool: Dumped free connection.
jdbc/openAccessPool: Number pooled connections = 6.
jdbc/openAccessPool: Number free connections = 6.
 
jdbc/openAccessPool: Dumped free connection.
jdbc/openAccessPool: Number pooled connections = 5.
jdbc/openAccessPool: Number free connections = 5.
 
jdbc/openAccessPool: Dumped free connection.
jdbc/openAccessPool: Number pooled connections = 4.
jdbc/openAccessPool: Number free connections = 4.
 
jdbc/openAccessPool: Dumped free connection.
jdbc/openAccessPool: Number pooled connections = 3.
jdbc/openAccessPool: Number free connections = 3.
 
jdbc/openAccessPool: Dumped free connection.
jdbc/openAccessPool: Number pooled connections = 2.
jdbc/openAccessPool: Number free connections = 2.
 
jdbc/openAccessPool: Dumped free connection.
jdbc/openAccessPool: Number pooled connections = 1.
jdbc/openAccessPool: Number free connections = 1.
 
jdbc/openAccessPool: Dumped free connection.
jdbc/openAccessPool: Number pooled connections = 0.
jdbc/openAccessPool: Number free connections = 0.
 
jdbc/openAccessPool: Enforced minimum!9
NrFreeConnections was: 0
jdbc/openAccessPool: Number pooled connections = 5.
jdbc/openAccessPool: Number free connections = 5.
 
jdbc/openAccessPool: Enforced maximum!
NrFreeConnections was: 5
jdbc/openAccessPool: Number pooled connections = 5.
jdbc/openAccessPool: Number free connections = 5.
 
jdbc/openAccessPool: Closing a pool of the group
jdbc/openAccessPool10
jdbc/openAccessPool: Number pooled connections = 5.
jdbc/openAccessPool: Number free connections = 5.
 
jdbc/openAccessPool: Pool closed11
jdbc/openAccessPool: Number pooled connections = 0.
jdbc/openAccessPool: Number free connections = 0.

Notes 

1. The Pool Manager creates a connection pool. In this example, the characteristics of the connection pool are shown using the following format:
(JNDI_name,DataSource_class,initial_pool_size,min_pool_size,max_pool_size,user)
where:
JNDI_name is the JNDI name used to look up the connection pool (for example, jdbc/openAccessPool).
DataSource_class is the DataSource class associated with the connection pool (for example com.ddtek.jdbcx.openaccess.OpenAccessDataSource).
initial_pool_size is the number of physical connections created when the connection pool is initialized (for example, 5).
min_pool_size is the minimum number of physical connections that will be kept open in the connection pool (for example, 5).
max_pool_size is the maximum number of physical connections allowed within a single pool at any one time. When this number is reached, additional connections that would normally be placed in a connection pool are closed (for example, 10).
user is the name of the user establishing the connection (for example, scott).
1. The Pool Manager checks the pool size. Because the minimum pool size is five connections, the Pool Manager creates new connections to satisfy the minimum pool size.
2. The driver requests a connection from the connection pool. The driver retrieves an available connection.
3. The driver requests a connection from the connection pool. Because a connection is unavailable, the Pool Manager creates a new connection for the request.
4. A connection is closed by the application and returned to the connection pool.
5. The Pool Manager checks the pool size. Because the number of connections in the connection pool is greater than the minimum pool size, five connections, no action is taken by the Pool Manager.
6. The Pool Manager checks the pool size. Because the number of connections in the connection pool is greater than the maximum pool size, 10 connections, a connection is closed and discarded from the pool.
7. The Pool Manager detects that a connection was idle in the connection pool longer than the maximum idle timeout. The idle connection is closed and discarded from the pool.
8. The Pool Manager detects that the number of connections dropped below the limit set by the minimum pool size, five connections. The Pool Manager creates new connections to satisfy the minimum pool size.
9. The Pool Manager closes one of the connection pools in the pool group. A pool group is a collection of pools created from the same PooledConnectionDataSource call. Different pools are created when different user IDs are used to retrieve connections from the pool. A pool group is created for each user ID that requests a connection. In our example, because only one user ID was used, only one pool group is closed.
10. The Pool Manager closed all the pools in the pool group. The connection pool is closed.