Bug 53158

Summary: Wrong default values indicated for the evictor service
Product: Tomcat 6 Reporter: ph.dezanneau
Component: DocumentationAssignee: Tomcat Developers Mailing List <dev>
Status: RESOLVED FIXED    
Severity: normal    
Priority: P2    
Version: unspecified   
Target Milestone: default   
Hardware: All   
OS: All   

Description ph.dezanneau 2012-04-28 11:15:00 UTC
http://tomcat.apache.org/tomcat-6.0-doc/jndi-resources-howto.html 

In this Tomcat 6.x documentation page, it is stated that :

timeBetweenEvictionRunsMillis - The number of milliseconds between consecutive runs of the evictor. Default: 30*60*1000 (30 minutes)
minEvictableIdleTimeMillis - The idle time in milliseconds after which a connection can be removed from the pool by the evictor. Default: -1 (disabled)

The default values for those parameters are actually the other way around :

timeBetweenEvictionRunsMillis - The number of milliseconds between consecutive runs of the evictor. Default: -1 (disabled)
minEvictableIdleTimeMillis - The idle time in milliseconds after which a connection can be removed from the pool by the evictor. Default: 30*60*1000 (30 minutes)

You can see this on the GenericObjectPool class from commons-pool :

http://grepcode.com/file/repo1.maven.org/maven2/commons-pool/commons-pool/1.3/org/apache/commons/pool/impl/GenericObjectPool.java#GenericObjectPool

Thank you.
Comment 1 Rainer Jung 2012-04-28 14:26:44 UTC
Thanks for the info. Fixed in trunk (r1331766), TC 7 (r1331772), TC6 (r1331774) and TC 5.5 (r1331775).

Regards,

Rainer