https://bz.apache.org/bugzilla/show_bug.cgi?id=59051

            Bug ID: 59051
           Summary: JDBC Request : Connection is closed by pool if it
                    exceeds the configured lifetime
           Product: JMeter
           Version: Nightly (Please specify date)
          Hardware: All
                OS: All
            Status: NEW
          Severity: normal
          Priority: P2
         Component: Main
          Assignee: [email protected]
          Reporter: [email protected]

Hello,
Related to Bug 58786, a bug was introduced.

When KeepAlive is used and Connection Age is set to 5 seconds, DBCP will close
the Active connection if it exceeds this timeout and following is logged:

2016/02/23 09:09:29 WARN  - org.apache.commons.dbcp2.BasicDataSource: An
internal object pool swallowed an Exception.
org.apache.commons.dbcp2.LifetimeExceededException: The lifetime of the
connection [13,988] milliseconds exceeds the maximum permitted value of [5,000]
milliseconds
        at
org.apache.commons.dbcp2.PoolableConnectionFactory.validateLifetime(PoolableConnectionFactory.java:424)
        at
org.apache.commons.dbcp2.PoolableConnectionFactory.passivateObject(PoolableConnectionFactory.java:364)
        at
org.apache.commons.pool2.impl.GenericObjectPool.returnObject(GenericObjectPool.java:578)
        at
org.apache.commons.dbcp2.PoolableConnection.close(PoolableConnection.java:206)
        at
org.apache.commons.dbcp2.DelegatingConnection.closeInternal(DelegatingConnection.java:236)
        at
org.apache.commons.dbcp2.DelegatingConnection.close(DelegatingConnection.java:218)
        at
org.apache.commons.dbcp2.PoolingDataSource$PoolGuardConnectionWrapper.close(PoolingDataSource.java:244)
        at
org.apache.jmeter.protocol.jdbc.AbstractJDBCTestElement.close(AbstractJDBCTestElement.java:555)
        at
org.apache.jmeter.protocol.jdbc.sampler.JDBCSampler.sample(JDBCSampler.java:103)
        at
org.apache.jmeter.threads.JMeterThread.executeSamplePackage(JMeterThread.java:446)
        at
org.apache.jmeter.threads.JMeterThread.processSampler(JMeterThread.java:391)
        at org.apache.jmeter.threads.JMeterThread.run(JMeterThread.java:240)
        at java.lang.Thread.run(Thread.java:745)

-- 
You are receiving this mail because:
You are the assignee for the bug.

Reply via email to