New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Jdbc pool keepalive flooding #3294
Comments
Sebb (migrated from Bugzilla):
Did you try datasource 2.1 ?
I don't think you need the api jar.
We currently use the following: excalibur-datasource.version = 1.1.1 Which of these did you keep?
Thanks very much, useful to know.
|
Luca (migrated from Bugzilla):
I tried it now and seems working.
Without the jar I get this exception: 2014/01/08 15:22:16 ERROR - jmeter.JMeter: Uncaught exception: java.lang.NoClassDefFoundError: org/apache/avalon/excalibur/pool/ObjectFactory
Here is the list of excalibur jars that I'm using: excalibur-instrument-1.0.jar Thanks, |
Sebb (migrated from Bugzilla):
Great
My bad, I assumed the API contained empty classes.
Thanks again! |
@pmouawad (migrated from Bugzilla): |
Sebb (migrated from Bugzilla):
Please create a new thread on the dev list about this. |
Sebb (migrated from Bugzilla): URL: http://svn.apache.org/r1556884 Modified: URL: http://svn.apache.org/r1556889 Modified: |
Luca (Bug 55977):
In jdbc load test Keepalive age is not respected with bundled excalibur libraries. Versions tried: 2.9, 2.11, trunk.
For example, consider this configuration:
Insert in a thread group a jdbc sampler and a timer to execute 1 sample per second.
Enabled debug in jmeter properties:
log_level.jmeter.protocol.jdbc=DEBUG
In the output in jmeter.log, after "Max connection age" seconds it seems that the flag which marks the connection idle is not reset, and for every following sample a keepalive query is executed:
2014/01/08 10:56:20 DEBUG - jmeter.protocol.jdbc.sampler.JDBCSampler: sampling jdbc
2014/01/08 10:56:20 DEBUG - jmeter.protocol.jdbc.config.DataSourceElement: Got a com.sun.proxy.$Proxy0 from the pool.
2014/01/08 10:56:20 DEBUG - jmeter.protocol.jdbc.config.DataSourceElement: Pinging database after 5999ms of inactivity.
2014/01/08 10:56:20 DEBUG - jmeter.protocol.jdbc.AbstractJDBCTestElement: executing jdbc
2014/01/08 10:56:20 DEBUG - jmeter.protocol.jdbc.config.DataSourceElement: Put a com.sun.proxy.$Proxy0 back into the pool.
2014/01/08 10:56:21 DEBUG - jmeter.protocol.jdbc.sampler.JDBCSampler: sampling jdbc
2014/01/08 10:56:21 DEBUG - jmeter.protocol.jdbc.config.DataSourceElement: Got a com.sun.proxy.$Proxy0 from the pool.
2014/01/08 10:56:21 DEBUG - jmeter.protocol.jdbc.config.DataSourceElement: Pinging database after 6999ms of inactivity.
2014/01/08 10:56:21 DEBUG - jmeter.protocol.jdbc.AbstractJDBCTestElement: executing jdbc
In attach the whole log.
Under heavy load the Oracle DB is flooded by keepalive queries that cause unexpected cpu utilization and latencies (even with dual table).
I tried the latest jars from excalibur (datasource and pool) and the problem seem to me that is solved:
Hope this helps to solve the problem, thanks.
Luca
Created attachment jmeter.log: Jmeter log of the scenario.
Severity: normal
OS: All
The text was updated successfully, but these errors were encountered: