|
controller中的运行时间是在规定的时间内不停的循环直至时间结束,而设置迭代次数就是按照设置的循环次数执行
我在controller中运行新增合同的脚本,并发300用户,运行5分钟,报错Action.c(39): Error -27791: Server "192.168.2.11" has shut down the connection prematurely
设置迭代次数2,5,10,。。。,100次都不报错
应用服务器是weblogic,集合点设置是:所有vuser100%达到集合点时并发。
脚本如下:
Action()
{
lr_think_time(2);
web_url("left_fold2.gif",
"URL=http://192.168.2.11:7001/hyglggy/pic/left_fold2.gif",
"Resource=1",
"RecContentType=image/gif",
"Referer=http://192.168.2.11:7001/hyglggy/include/menu.jsp",
"Snapshot=t6.inf",
LAST);
web_url("left_fold7.gif",
"URL=http://192.168.2.11:7001/hyglggy/pic/left_fold7.gif",
"Resource=1",
"RecContentType=image/gif",
"Referer=http://192.168.2.11:7001/hyglggy/include/menu.jsp",
"Snapshot=t7.inf",
LAST);
web_url("xjht.do",
"URL=http://192.168.2.11:7001/hyglggy/htgl/xjht.do",
"Resource=0",
"RecContentType=text/html",
"Referer=http://192.168.2.11:7001/hyglggy/include/menu.jsp",
"Snapshot=t8.inf",
"Mode=HTML",
LAST);
lr_think_time(3);
lr_rendezvous("合同集合点");
lr_start_transaction("新建合同");
web_submit_form("xjht_xs.do",
"Snapshot=t9.inf",
ITEMDATA,
"Name=bg_explain", "Value=contract-shuoming", ENDITEM,
"Name=bg_number", "Value={contract}", ENDITEM,
"Name=payment_name", "Value=有限公司", ENDITEM,
"Name=payment_name_select", "Value=", ENDITEM,
"Name=payment_id", "Value=2009", ENDITEM,
"Name=bg_start_date", "Value=2009-01-01", ENDITEM,
"Name=bg_amount", "Value=10000", ENDITEM,
"Name=bg_cycle", "Value=5", ENDITEM,
"Name=bg_remark", "Value=123456", ENDITEM,
LAST);
lr_end_transaction("新建合同", LR_AUTO);
return 0;
} |
|