This week's book giveaway is in the Big Data forum.
We're giving away four copies of Elasticsearch in Action and have Radu Gheorghe & Matthew Lee Hinman on-line!
See this thread for details.
The moose likes JDBC and Relational Databases and the fly likes PooledConnection maximum Limit Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of Elasticsearch in Action this week in the Big Data forum!
JavaRanch » Java Forums » Databases » JDBC and Relational Databases
Bookmark "PooledConnection maximum Limit" Watch "PooledConnection maximum Limit" New topic

PooledConnection maximum Limit

Raj Jindal
Ranch Hand

Joined: Jan 17, 2003
Posts: 50
In a web application i am using oracleConnectionPoolDatasource class for implementing the connection pool. I am getting connection in a bean using oracle.jdbc.pool.OracleConnectionPoolDataSource.getPooledConnection. means i m getting a pooled connection.
Please let me know what do we mean by setting of min size and max size AND what happens when load on the server exceeds max limit.
Mani Narayanan

Joined: Feb 20, 2004
Posts: 5
By setting connection pooling, one is acheiving a set of ready to use resources to access the database from the resource pool and giving it back to the pool after completing the job. Usually connection pool size should be less than the maximum connections set in your servlet engine. It has been found that lower settings (10-30 connections) perform better than higher (100+) settings. It is strongly recommended that you code your application to use at most one connection per thread. If you do code your application to require "C" concurrent database connections per thread, then your connection pool must support at least:
T * (C - 1) + 1
connections, where "T" is the maximum number of threads.
subject: PooledConnection maximum Limit