[
https://issues.apache.org/jira/browse/POOL-316?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15602107#comment-15602107
]
Caleb Cittadino commented on POOL-316:
--------------------------------------
Hi Gary,
I would be happy to, although I'm not sure yet how to do that without giving
you our whole application... Do you have any tips on how to get you the
necessary info? I assume just having the connection pool configuration and
release number (2.4.2) is not enough, but just in case here you go:
{code}
#
# Connection Pool (CP) Sizing
#
minIdle=10
maxTotal=200
maxIdle=200
initialSize=0
#
# CP Timeouts
#
maxWaitMillis=30000
timeBetweenEvictionRunsMillis=900000
minEvictableIdleTimeMillis=1800000
softMinEvictableIdleTimeMillis=1800000
#
# CP Validation
#
validationQuery=SELECT 1 from dual
testOnBorrow=true
testWhileIdle=false
removeAbandonedOnMaintenance = true
removeAbandonedOnBorrow = true
removeAbandonedTimeout = 60
logAbandoned = true
abandonedUsageTracking = true
#
# CP Leak Detection (only use at the instruction of PB engineering)
#
#removeAbandonedOnMaintenance=true
#removeAbandonedOnBorrow=true
#removeAbandonedTimeout=60
#logAbandoned=true
#abandonedUsageTracking=true
{code}
~Caleb
> Evictor periodically throws NullPointerExceptions
> -------------------------------------------------
>
> Key: POOL-316
> URL: https://issues.apache.org/jira/browse/POOL-316
> Project: Commons Pool
> Issue Type: Bug
> Affects Versions: 2.4.2
> Reporter: Caleb Cittadino
>
> When the logging level is set to WARN or INFO we see the following NPE
> peridically:
> {code}
> [2016-10-20 13:26:38,646 | WARN | org.apache.commons.dbcp2.BasicDataSource]
> An internal object pool swallowed an Exception.
> java.lang.Exception: java.lang.NullPointerException
> at
> org.apache.commons.pool2.impl.GenericObjectPool.evict(GenericObjectPool.java:787)
> [commons-pool2-2.4.2.jar:2.4.2]
> at
> org.apache.commons.pool2.impl.BaseGenericObjectPool$Evictor.run(BaseGenericObjectPool.java:1036)
> [commons-pool2-2.4.2.jar:2.4.2]
> at java.util.TimerThread.mainLoop(Unknown Source) [na:1.8.0_25]
> at java.util.TimerThread.run(Unknown Source) [na:1.8.0_25]
> Caused by: java.lang.NullPointerException: null
> at
> org.apache.commons.pool2.impl.GenericObjectPool.evict(GenericObjectPool.java:781)
> [commons-pool2-2.4.2.jar:2.4.2]
> ... 3 common frames omitted
> {code}
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)