A friendly place for programming greenhorns!
Big Moose Saloon
Register / Login
Win a copy of
The Mikado Method
this week in the
Agile and other Processes
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:
- if it wasn't for jprofiler, we would need to run our stuff on 16 servers instead of 3.
subject: Connection Pool: connecting in memory
Standalone Connection pooling with DBCP
JDBC Connection Pool behaviour
Database Connection and Session
why data source?
All times are in JavaRanch time: GMT-6 in summer, GMT-7 in winter
| Powered by
Copyright © 1998-2013