【jmeter学习&常见问题解决】
1.jmeter连接数据库报错Error preloading the connection pool
解决(一):
jmeter连接数据库时好时坏,连接失败报Error preloading the connection pool;将MaxNumber of Connections改为0即可;
jmeter官网说明:
解决(二):断开本地navicate数据库连接(场景:第一个jdbc请求失败,后面的成功)。
2.jdbc请求一个或多个查询sql执行,查询类型选择。
(1)只有一个查询的sql,选择prepared Select Statement
(2)有多个查询的sql,选择callable Statement