tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Christopher Schultz <>
Subject Re: question regarding attributes
Date Sat, 06 Feb 2016 04:37:24 GMT
Hash: SHA1


On 2/3/16 4:00 PM, dinakaran ganesan wrote:
> We have the following set of parameters setup for  tomcat in our
> environment.
> maxActive=100 maxWait=60000 maxIdle=15 minIdle=30 initialSize=15 
> testOnBorrow=false validationQuery=SELECT 1 FROM DUAL 
> validationInterval=60000 minEvictableIdleTimeMillis=3000000 ( 3000
> secs) timeBetweenEvictionRunsMillis=300000 (300 secs)

Presumably, this is for a JNDI DataSource? What type? The default type

> Reading thru the following section, we understood 
> minEvictableIdleTimeMillis as number of milliseconds a connection
> has to be idle before it gets removed from connection pool and 
> timeBetweenEvictionRunsMillis as number of milliseconds to elapse
> before running connection validation again. But what we are
> noticing is that despite setting timeBetweenEvictionRunsMillis to
> 300000 (3000 secs or 5 minutes)

3000 seconds is slightly longer than 5 minutes. Fortunately, your typo
is in your text and not in your configuration (but you probably didn't
copy/paste your configuration... It might be better if you did).
300000 is in fact 5 minutes.

> the test kicks in every 10 minutes and runs Idle connection 
> validation. We are trying to understand what is triggering the
> Idle connection validation every 10 minutes.

I don't see any settings above that would end up being 10 minutes. How
do you know the idle test is running every 10 minutes?

- -chris
Comment: GPGTools -
Comment: Using GnuPG with Thunderbird -


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

View raw message