+

Search Tips   |   Advanced Search

Tune connection pools

Use connection pools helps to both alleviate connection management overhead and decrease development tasks for data access. Each time an application attempts to access a backend store (such as a database), it requires resources to create, maintain, and release a connection to that datastore. To mitigate the strain this process can place on overall application resources, the application server enables administrators to establish a pool of backend connections that applications can share on an application server. Connection pooling spreads the connection overhead across several user requests, thereby conserving application resources for future requests.

Connection pooling can improve the response time of any application that requires connections, especially Web-based applications. When we make a request over the web to a resource, the resource accesses a data source. Because we connect and disconnect frequently with applications on the Internet, the application requests for data access can surge to considerable volume. Consequently, the total overhead for a datastore can quickly become high for Web-based applications, causing performance to deteriorate. When connection pooling capabilities are used, however, web applications can realize performance improvements of up to 20 times the normal results.

Connection pooling is not supported in an application client. The application client calls the database directly and does not go through a data source. To use the getConnection() request from the application client, configure the JDBC provider in the application client deployment descriptors, using Rational Application Developer or an assembly tool. The connection is established between application client and the database. Application clients do not have a connection pool, but we can configure JDBC provider settings in the client deployment descriptors.


Tasks


Subtopics


Related:

  • Connection pooling
  • Transaction type and connection behavior
  • Configure Java EE Connector connection factories in the administrative console
  • Disable statement pooling
  • Connection pool settings
  • Connection and connection pool statistics
  • Connection pool custom properties