commons-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Timko, Cheryl A." <>
Subject RE: [DBCP] Slow Performance Under Load
Date Fri, 25 Apr 2003 11:57:07 GMT
Thank you all for your suggestions!

- Cheryl

-----Original Message-----
From: Craig R. McClanahan [] 
Sent: Thursday, April 24, 2003 2:39 PM
To: Jakarta Commons Users List
Subject: RE: [DBCP] Slow Performance Under Load

On Thu, 24 Apr 2003, Timko, Cheryl A. wrote:

> Date: Thu, 24 Apr 2003 13:37:43 -0400
> From: "Timko, Cheryl A." <>
> Reply-To: Jakarta Commons Users List <>
> To: 'Jakarta Commons Users List' <>
> Subject: RE: [DBCP] Slow Performance Under Load
> I have DBCP configured to use the default configuration where:
> driverClassName=oracle.jdbc.driver.OracleDriver
> url=jdbc:oracle:thin:@xxxxx:25000:mytestdb
> Username=xxx
> Password=xxx
> defaultAutoCommit=true
> defaultReadOnly=false
> logAbandoned=false
> removeAbandoned=false
> removeAbandonedTimeout=300
> maxActive=8
> maxIdle=8
> maxWait=-1
> minEvictableIdleTimeMillis=1800000
> timeBetweenEvictionRunsMillis=-1
> numTestsPerEvictionRun=3
> testOnBorrow=true
> testOnReturn=false
> testWhileIdle=false
> whenExhaustedAction=1
> Can you recommend more optimal configuration values?

One important consideration is how many simultaneous requests you are
trying to process.  Setting maxActive=8 means that having more than 8
simultaneous users will definitely cause slowdowns.

On the other hand, it's not a good idea to set maxActive to some
arbitrarily high value either -- the right answer tends to be very
specific to your particular application (and, of course, setting this to a
number higher than the maximum connections your database is configured to
support won't help either).  But I would definitely experiment with
different values for maxActive.

If you're talking about something like a web application where you get
bursts of simultaneous requests, followed by relatively low use, you
probably want to up the maxIdle setting to something close to what you set
maxActive to, in order to avoid needlessly closing connections and then
having to reopen them.

> Thanks in advance for your help!
> - Cheryl


To unsubscribe, e-mail:
For additional commands, e-mail:

Notice:  This e-mail message, together with any attachments, contains information of Merck
& Co., Inc. (Whitehouse Station, New Jersey, USA) that may be confidential, proprietary
copyrighted and/or legally privileged, and is intended solely for the use of the individual
or entity named in this message.  If you are not the intended recipient, and have received
this message in error, please immediately return this by e-mail and then delete it.


View raw message