Bug 53158 - Wrong default values indicated for the evictor service
Summary: Wrong default values indicated for the evictor service
Status: RESOLVED FIXED
Alias: None
Product: Tomcat 6
Classification: Unclassified
Component: Documentation (show other bugs)
Version: unspecified
Hardware: All All
: P2 normal (vote)
Target Milestone: default
Assignee: Tomcat Developers Mailing List
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2012-04-28 11:15 UTC by ph.dezanneau
Modified: 2012-04-28 14:26 UTC (History)
0 users



Attachments

Note You need to log in before you can comment on or make changes to this bug.
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