|
我用Jmeter模拟向数据库 1000/s(每秒插入一千条数据) 的处理能力,运行完成后,在聚合报告中显示有0.11%的Error,查看日志,报如下错误:
jmeter.protocol.jdbc.config.DataSourceElement: Could not return Connection java.lang.Exception: Could not create enough Components to service your request (Timed out)
atorg.apache.avalon.excalibur.pool.ResourceLimitingPool.get(ResourceLimitingPool.java:350)
atorg.apache.avalon.excalibur.pool.ValidatedResourceLimitingPool.get(ValidatedResourceLimitingPool.java:130)
atorg.apache.avalon.excalibur.datasource.ResourceLimitingJdbcDataSource.getConnection(ResourceLimitingJdbcDataSource.java:222)
atorg.apache.jmeter.protocol.jdbc.config.DataSourceElement$DataSourceComponentImpl.getConnection(DataSourceElement.java:271)
atorg.apache.jmeter.protocol.jdbc.config.DataSourceElement.getConnection(DataSourceElement.java:139)
atorg.apache.jmeter.protocol.jdbc.sampler.JDBCSampler.sample(JDBCSampler.java:72)
at org.apache.jmeter.threads.JMeterThread.process_sampler(JMeterThread.java:416)
at org.apache.jmeter.threads.JMeterThread.run(JMeterThread.java:271)
at java.lang.Thread.run(Thread.java:722)
实在是看不明白呀,只知道是超时,但不明白为什么会超时,这个究竟是数据库的处理能力问题还是Jmeter的问题,我新手,请大家帮忙解答,谢谢了! |
|