jmeter使用

sql记录:

INSERT INTO `fast`.`area_spec` 
(`AREA_SPEC_ID`, `CODE`, `NAME`, `PARENT_ID`, `SORT_POSITION`, `STS`, `STS_DATE`, `REMARKS`)
VALUES
('${__UUID}', '${__RandomString(20,qwertyuiopljgfzcvnm1234567890,)}', 
'${__RandomString(5,qwertyuiopljgfzcvnm1234567890,)}', '${__Random(1,100000,)}',${__Random(1,100,)}, 
'A', '${__time(yyyy-MM-dd HH:MM:SS,)}', 'remark');


 

 错误记录:

Cannot get a connection, pool error Timeout waiting for idle object

顾名思义就是无法获取连接,连接池等待空闲的连接超时!出现这种情况的原因:在非事务的情况下进行数据库操作完毕后,没有及时关闭连接,使数据库的连接不能有效得到回收,一直到数据库的连接用完后再请求下一个空闲的连接的时,都无法在获取空闲的连接而导致Cannot get a connection, pool error Timeout waiting for idle object问题!

Thread Name: 线程组 1-17
Sample Start: 2018-04-10 11:47:22 GMT+08:00
Load time: 13
Connect Time: 0
Latency: 0
Size in bytes: 31
Sent bytes:0
Headers size in bytes: 0
Body size in bytes: 31
Sample Count: 1
Error Count: 1
Data type ("text"|"bin"|""): text
Response code: 70100 1317
Response message: java.sql.SQLException: Query execution was interrupted

Response headers:
2081663971, URL=jdbc:mysql://192.168.90.15:8066/fast, UserName=root@10.120.20.19, MySQL-AB JDBC Driver

SampleResult fields:
ContentType: text/plain
DataEncoding: UTF-8

 

posted @ 2018-04-09 17:43  Chuck.June  阅读(262)  评论(0编辑  收藏  举报