A friendly place for programming greenhorns!
Big Moose Saloon
Register / Login
Connection Pool: connecting in memory
Joined: Aug 14, 2003
Sep 03, 2004 11:17:00
I would like know if manager DB pool create a number of connection in memory to better the performance or the manager DB pool create connection on-demand only.
Other doubt is if the manager pooling connecting have mechanism of verify is the connectiong is "alive" for example executing any query select in the DB to verify the status of connecting ?
Joined: Feb 20, 2001
Sep 03, 2004 16:53:00
The answer to both questions is : "depends on the pool".
Since you're asking in the Apache/Tomcat forum, I'll talk about Jakarta's Database Connection Pool (DBCP).
1) the pool instantiates connections 'as needed' up to the configured maximum number of connections.
2) you can configure DBCP to do a verification query (for example, "SELECT 1").
All the settings for DBCP are documented here:
I agree. Here's the link:
subject: Connection Pool: connecting in memory
Database Connection and Session
why data source?
JDBC Connection Pool behaviour
Standalone Connection pooling with DBCP
All times are in JavaRanch time: GMT-6 in summer, GMT-7 in winter
| Powered by
Copyright © 1998-2013