LR同一个场景并发量由第一次的50个成功,到第五次10个并发量都报错(已解决)
本帖最后由 Kadar 于 2011-1-24 15:57 编辑小弟刚接触LR不久,今天对公司一个项目的查询功能采用LR 9.1实施压力测试:
1、第一次我设置的并发量是50,运行20分钟,场景运行完毕后共有事务8025个,且全部成功;
2、第二次我设置的并发量是100,运行20分钟,在运行到19分钟时开始报错,场景运行完毕共有事务7000多,但是失败的有1895个,报错为Error -26627;
3、第三次我设置并发量为70,刚开始运行就报错,报错内容仍然是Error -26627;
从第二次往后并发数越降越低,现在并发10个都能报Error -26627错误,中途我除了修改并发量和Rendezvous中的等待时间,其他没有动过。
我想说:谁能告诉我这是怎么回事?
各位帮忙的朋友需要什么数据麻烦告诉我,我现在也不知道提供什么数据给各位朋友。 Error -26627
是什么错
发一下后面的内容 Action.c(145): Error -26627: HTTP Status-Code=404 (/ImmuneSystem/error.jsp) for "http://192.168.1.170:8080/ImmuneSystem/childrendata/sameChildren!query.action?cModId=11&cOption=4" 有谁遇到过这种问题吗...我无从着手啊
:Q 那就是这个404啊 那请问这个404错误怎么样才能调整过来呢?谢谢!
因为我现在只要并发就会有这个错误。并发2个都有~!! 手工访问一下,看这个URL能访问不 不行的,需求规定不能通过地址栏直接访问,而且这个页面是点击【查询】按钮后跳转到页面。
出现这个问题后我试过,能过访问到这个页面,就是用LoadRunner并发的时候不能访问。
一般404错误都这么解决的呢?谢谢! 你可以跟开发 DBA 说一下 看看前台页面连接是不是有问题 或数据库问题。 回放有没有问题,最好贴下脚本 vuser_init()/**登录*/
/* -------------------------------------------------------------------------------
Script Title :
Script Description :
Recorder Version : 1435
------------------------------------------------------------------------------- */
vuser_init()
{
web_set_max_html_param_len("50000");
/* Registering parameter(s) from source task id 4
// {JSESSIONID4} = "293C92B8BB1645794DAF8C95A32928E6"
// */
web_reg_save_param("JSESSIONID4",
"LB/IC=jsessionid=",
"RB/IC=\"",
"Ord=1",
"Search=body",
"RelFrameId=1",
LAST);
web_url("ImmuneSystem",
"URL=http://192.168.1.170:8080/ImmuneSystem",
"Resource=0",
"RecContentType=text/html",
"Referer=",
"Snapshot=t1.inf",
"Mode=HTTP",
LAST);
web_concurrent_start(NULL);
web_url("css.css",
"URL=http://192.168.1.170:8080/ImmuneSystem/css/css.css",
"Resource=1",
"RecContentType=text/css",
"Referer=http://192.168.1.170:8080/ImmuneSystem/",
"Snapshot=t2.inf",
LAST);
web_url("user.gif",
"URL=http://192.168.1.170:8080/ImmuneSystem/image/index/user.gif",
"Resource=1",
"RecContentType=image/gif",
"Referer=http://192.168.1.170:8080/ImmuneSystem/",
"Snapshot=t3.inf",
LAST);
web_url("bj_but.gif",
"URL=http://192.168.1.170:8080/ImmuneSystem/image/index/bj_but.gif",
"Resource=1",
"RecContentType=image/gif",
"Referer=http://192.168.1.170:8080/ImmuneSystem/",
"Snapshot=t4.inf",
LAST);
web_concurrent_end(NULL);
web_concurrent_start(NULL);
web_url("bj_01.gif",
"URL=http://192.168.1.170:8080/ImmuneSystem/image/index/bj_01.gif",
"Resource=1",
"RecContentType=image/gif",
"Referer=http://192.168.1.170:8080/ImmuneSystem/",
"Snapshot=t5.inf",
LAST);
web_url("fla_0.swf",
"URL=http://192.168.1.170:8080/ImmuneSystem/image/index/fla_0.swf",
"Resource=1",
"RecContentType=application/x-shockwave-flash",
"Referer=http://192.168.1.170:8080/ImmuneSystem/",
"Snapshot=t6.inf",
LAST);
web_concurrent_end(NULL);
web_submit_data("userLogin.action;jsessionid=293C92B8BB1645794DAF8C95A32928E6",
"Action=http://192.168.1.170:8080/ImmuneSystem/systemsetting/userLogin.action;jsessionid={JSESSIONID4}",
"Method=POST",
"RecContentType=text/html",
"Referer=http://192.168.1.170:8080/ImmuneSystem/",
"Snapshot=t7.inf",
"Mode=HTTP",
ITEMDATA,
"Name=loginName", "Value=ADMIN", ENDITEM,
"Name=loginPassword", "Value=ADMIN", ENDITEM,
LAST);
web_concurrent_start(NULL);
web_url("global.css",
"URL=http://192.168.1.170:8080/ImmuneSystem/css/global.css",
"Resource=1",
"RecContentType=text/css",
"Referer=http://192.168.1.170:8080/ImmuneSystem/systemsetting/userLogin.action;jsessionid={JSESSIONID4}",
"Snapshot=t8.inf",
LAST);
web_url("style.css",
"URL=http://192.168.1.170:8080/ImmuneSystem/css/style.css",
"Resource=1",
"RecContentType=text/css",
"Referer=http://192.168.1.170:8080/ImmuneSystem/systemsetting/userLogin.action;jsessionid={JSESSIONID4}",
"Snapshot=t9.inf",
LAST);
web_url("dtree.css",
"URL=http://192.168.1.170:8080/ImmuneSystem/css/dtree.css",
"Resource=1",
"RecContentType=text/css",
"Referer=http://192.168.1.170:8080/ImmuneSystem/systemsetting/userLogin.action;jsessionid={JSESSIONID4}",
"Snapshot=t10.inf",
LAST);
web_url("common.js",
"URL=http://192.168.1.170:8080/ImmuneSystem/js/common.js",
"Resource=1",
"RecContentType=text/javascript",
"Referer=http://192.168.1.170:8080/ImmuneSystem/systemsetting/userLogin.action;jsessionid={JSESSIONID4}",
"Snapshot=t11.inf",
LAST);
web_url("dtree.js",
"URL=http://192.168.1.170:8080/ImmuneSystem/js/dtree.js",
"Resource=1",
"RecContentType=text/javascript",
"Referer=http://192.168.1.170:8080/ImmuneSystem/systemsetting/userLogin.action;jsessionid={JSESSIONID4}",
"Snapshot=t12.inf",
LAST);
web_url("bj_05.gif",
"URL=http://192.168.1.170:8080/ImmuneSystem/image/index/bj_05.gif",
"Resource=1",
"RecContentType=image/gif",
"Referer=http://192.168.1.170:8080/ImmuneSystem/systemsetting/userLogin.action;jsessionid={JSESSIONID4}",
"Snapshot=t13.inf",
LAST);
web_url("zuo.gif",
"URL=http://192.168.1.170:8080/ImmuneSystem/image/zuo.gif",
"Resource=1",
"RecContentType=image/gif",
"Referer=http://192.168.1.170:8080/ImmuneSystem/systemsetting/userLogin.action;jsessionid={JSESSIONID4}",
"Snapshot=t14.inf",
LAST);
web_url("pic_0.jpg",
"URL=http://192.168.1.170:8080/ImmuneSystem/image/index/pic_0.jpg",
"Resource=1",
"RecContentType=image/jpeg",
"Referer=http://192.168.1.170:8080/ImmuneSystem/systemsetting/userLogin.action;jsessionid={JSESSIONID4}",
"Snapshot=t15.inf",
LAST);
web_url("left.jsp",
"URL=http://192.168.1.170:8080/ImmuneSystem/left.jsp",
"Resource=0",
"RecContentType=text/html",
"Referer=http://192.168.1.170:8080/ImmuneSystem/systemsetting/userLogin.action;jsessionid={JSESSIONID4}",
"Snapshot=t17.inf",
"Mode=HTTP",
LAST);
web_url("body.html",
"URL=http://192.168.1.170:8080/ImmuneSystem/image/body.html",
"Resource=0",
"RecContentType=text/html",
"Referer=http://192.168.1.170:8080/ImmuneSystem/systemsetting/userLogin.action;jsessionid={JSESSIONID4}",
"Snapshot=t18.inf",
"Mode=HTTP",
LAST);
web_concurrent_end(NULL);
web_url("fla02.swf",
"URL=http://192.168.1.170:8080/ImmuneSystem/image/index/fla02.swf",
"Resource=1",
"RecContentType=application/x-shockwave-flash",
"Referer=http://192.168.1.170:8080/ImmuneSystem/systemsetting/userLogin.action;jsessionid={JSESSIONID4}",
"Snapshot=t16.inf",
LAST);
web_concurrent_start(NULL);
web_url("leftTree.js",
"URL=http://192.168.1.170:8080/ImmuneSystem/js/leftTree.js",
"Resource=1",
"RecContentType=text/javascript",
"Referer=http://192.168.1.170:8080/ImmuneSystem/left.jsp",
"Snapshot=t19.inf",
LAST);
web_url("mini_icons_006.gif",
"URL=http://192.168.1.170:8080/ImmuneSystem/image/mini_icons_006.gif",
"Resource=1",
"RecContentType=image/gif",
"Referer=http://192.168.1.170:8080/ImmuneSystem/left.jsp",
"Snapshot=t21.inf",
LAST);
web_concurrent_end(NULL);
web_url("body.gif",
"URL=http://192.168.1.170:8080/ImmuneSystem/image/body.gif",
"Resource=1",
"RecContentType=image/gif",
"Referer=http://192.168.1.170:8080/ImmuneSystem/image/body.html",
"Snapshot=t20.inf",
LAST);
web_concurrent_start(NULL);
web_url("base.gif",
"URL=http://192.168.1.170:8080/ImmuneSystem/image/base.gif",
"Resource=1",
"RecContentType=image/gif",
"Referer=http://192.168.1.170:8080/ImmuneSystem/left.jsp",
"Snapshot=t22.inf",
LAST);
web_url("plus.gif",
"URL=http://192.168.1.170:8080/ImmuneSystem/image/plus.gif",
"Resource=1",
"RecContentType=image/gif",
"Referer=http://192.168.1.170:8080/ImmuneSystem/left.jsp",
"Snapshot=t23.inf",
LAST);
web_url("join.gif",
"URL=http://192.168.1.170:8080/ImmuneSystem/image/join.gif",
"Resource=1",
"RecContentType=image/gif",
"Referer=http://192.168.1.170:8080/ImmuneSystem/left.jsp",
"Snapshot=t24.inf",
LAST);
web_url("page.gif",
"URL=http://192.168.1.170:8080/ImmuneSystem/image/page.gif",
"Resource=1",
"RecContentType=image/gif",
"Referer=http://192.168.1.170:8080/ImmuneSystem/left.jsp",
"Snapshot=t25.inf",
LAST);
web_url("folder.gif",
"URL=http://192.168.1.170:8080/ImmuneSystem/image/folder.gif",
"Resource=1",
"RecContentType=image/gif",
"Referer=http://192.168.1.170:8080/ImmuneSystem/left.jsp",
"Snapshot=t26.inf",
LAST);
web_url("line.gif",
"URL=http://192.168.1.170:8080/ImmuneSystem/image/line.gif",
"Resource=1",
"RecContentType=image/gif",
"Referer=http://192.168.1.170:8080/ImmuneSystem/left.jsp",
"Snapshot=t27.inf",
LAST);
web_url("joinbottom.gif",
"URL=http://192.168.1.170:8080/ImmuneSystem/image/joinbottom.gif",
"Resource=1",
"RecContentType=image/gif",
"Referer=http://192.168.1.170:8080/ImmuneSystem/left.jsp",
"Snapshot=t28.inf",
LAST);
web_concurrent_end(NULL);
return 0;
} 本帖最后由 Kadar 于 2011-1-21 15:36 编辑
Action()--/**并发查询操作*/
Action()
{
web_concurrent_start(NULL);
web_url("folderopen.gif",
"URL=http://192.168.1.170:8080/ImmuneSystem/image/folderopen.gif",
"Resource=1",
"RecContentType=image/gif",
"Referer=http://192.168.1.170:8080/ImmuneSystem/left.jsp",
"Snapshot=t29.inf",
LAST);
web_url("minus.gif",
"URL=http://192.168.1.170:8080/ImmuneSystem/image/minus.gif",
"Resource=1",
"RecContentType=image/gif",
"Referer=http://192.168.1.170:8080/ImmuneSystem/left.jsp",
"Snapshot=t30.inf",
LAST);
web_concurrent_end(NULL);
web_url("sameChildren.action",
"URL=http://192.168.1.170:8080/ImmuneSystem/childrendata/sameChildren.action?sflag=1&cModId=11",
"Resource=0",
"RecContentType=text/html",
"Referer=http://192.168.1.170:8080/ImmuneSystem/left.jsp",
"Snapshot=t31.inf",
"Mode=HTTP",
LAST);
web_concurrent_start(NULL);
web_url("formSubmit.js",
"URL=http://192.168.1.170:8080/ImmuneSystem/js/formSubmit.js",
"Resource=1",
"RecContentType=text/javascript",
"Referer=http://192.168.1.170:8080/ImmuneSystem/childrendata/sameChildren.action?sflag=1&cModId=11",
"Snapshot=t32.inf",
LAST);
web_url("time.js",
"URL=http://192.168.1.170:8080/ImmuneSystem/js/time.js",
"Resource=1",
"RecContentType=text/javascript",
"Referer=http://192.168.1.170:8080/ImmuneSystem/childrendata/sameChildren.action?sflag=1&cModId=11",
"Snapshot=t33.inf",
LAST);
web_url("popupForm.js",
"URL=http://192.168.1.170:8080/ImmuneSystem/js/popupForm.js",
"Resource=1",
"RecContentType=text/javascript",
"Referer=http://192.168.1.170:8080/ImmuneSystem/childrendata/sameChildren.action?sflag=1&cModId=11",
"Snapshot=t34.inf",
LAST);
web_url("showWait.js",
"URL=http://192.168.1.170:8080/ImmuneSystem/js/showWait.js",
"Resource=1",
"RecContentType=text/javascript",
"Referer=http://192.168.1.170:8080/ImmuneSystem/childrendata/sameChildren.action?sflag=1&cModId=11",
"Snapshot=t35.inf",
LAST);
web_url("grayStyle.css",
"URL=http://192.168.1.170:8080/ImmuneSystem/css/grayStyle.css",
"Resource=1",
"RecContentType=text/css",
"Referer=http://192.168.1.170:8080/ImmuneSystem/childrendata/sameChildren.action?sflag=1&cModId=11",
"Snapshot=t36.inf",
LAST);
web_url("blueStyle.css",
"URL=http://192.168.1.170:8080/ImmuneSystem/css/blueStyle.css",
"Resource=1",
"RecContentType=text/css",
"Referer=http://192.168.1.170:8080/ImmuneSystem/childrendata/sameChildren.action?sflag=1&cModId=11",
"Snapshot=t37.inf",
LAST);
web_url("cblueStyle.css",
"URL=http://192.168.1.170:8080/ImmuneSystem/css/cblueStyle.css",
"Resource=1",
"RecContentType=text/css",
"Referer=http://192.168.1.170:8080/ImmuneSystem/childrendata/sameChildren.action?sflag=1&cModId=11",
"Snapshot=t38.inf",
LAST);
web_url("expanded.gif",
"URL=http://192.168.1.170:8080/ImmuneSystem/image/expanded.gif",
"Resource=1",
"RecContentType=image/gif",
"Referer=http://192.168.1.170:8080/ImmuneSystem/childrendata/sameChildren.action?sflag=1&cModId=11",
"Snapshot=t39.inf",
LAST);
web_url("DWRActionUtil.js",
"URL=http://192.168.1.170:8080/ImmuneSystem/js/DWRActionUtil.js",
"Resource=1",
"RecContentType=text/javascript",
"Referer=http://192.168.1.170:8080/ImmuneSystem/childrendata/sameChildren.action?sflag=1&cModId=11",
"Snapshot=t40.inf",
LAST);
web_url("DWRAction.js",
"URL=http://192.168.1.170:8080/ImmuneSystem/dwr/interface/DWRAction.js",
"Resource=1",
"RecContentType=text/plain",
"Referer=http://192.168.1.170:8080/ImmuneSystem/childrendata/sameChildren.action?sflag=1&cModId=11",
"Snapshot=t41.inf",
LAST);
web_url("engine.js",
"URL=http://192.168.1.170:8080/ImmuneSystem/dwr/engine.js",
"Resource=1",
"RecContentType=text/javascript",
"Referer=http://192.168.1.170:8080/ImmuneSystem/childrendata/sameChildren.action?sflag=1&cModId=11",
"Snapshot=t42.inf",
LAST);
web_url("util.js",
"URL=http://192.168.1.170:8080/ImmuneSystem/dwr/util.js",
"Resource=1",
"RecContentType=text/javascript",
"Referer=http://192.168.1.170:8080/ImmuneSystem/childrendata/sameChildren.action?sflag=1&cModId=11",
"Snapshot=t43.inf",
LAST);
web_url("areaDWR.js",
"URL=http://192.168.1.170:8080/ImmuneSystem/js/areaDWR.js",
"Resource=1",
"RecContentType=text/javascript",
"Referer=http://192.168.1.170:8080/ImmuneSystem/childrendata/sameChildren.action?sflag=1&cModId=11",
"Snapshot=t44.inf",
LAST);
web_concurrent_end(NULL);
lr_rendezvous("集合点");
lr_start_transaction("重复儿童查询");
web_submit_data("sameChildren!query.action",
"Action=http://192.168.1.170:8080/ImmuneSystem/childrendata/sameChildren!query.action?cModId=11&cOption=4",
"Method=POST",
"RecContentType=text/html",
"Referer=http://192.168.1.170:8080/ImmuneSystem/childrendata/sameChildren.action?sflag=1&cModId=11",
"Snapshot=t45.inf",
"Mode=HTTP",
ITEMDATA,
"Name=areaName", "Value=??", ENDITEM,
"Name=areaCode", "Value=370000000000", ENDITEM,
"Name=hidAreaId", "Value=1", ENDITEM,
"Name=hidAreaLevel", "Value=0", ENDITEM,
"Name=keyword", "Value=1", ENDITEM,
"Name=keyword", "Value=3", ENDITEM,
"Name=childStatus", "Value=0", ENDITEM,
"Name=tempChild", "Value=0", ENDITEM,
"Name=__checkbox_checked", "Value=true", ENDITEM,
LAST);
web_concurrent_start(NULL);
web_url("DWRAction.js_2",
"URL=http://192.168.1.170:8080/ImmuneSystem/dwr/interface/DWRAction.js",
"Resource=1",
"RecContentType=text/plain",
"Referer=http://192.168.1.170:8080/ImmuneSystem/childrendata/sameChildren!query.action?cModId=11&cOption=4",
"Snapshot=t46.inf",
LAST);
web_url("engine.js_2",
"URL=http://192.168.1.170:8080/ImmuneSystem/dwr/engine.js",
"Resource=1",
"RecContentType=text/javascript",
"Referer=http://192.168.1.170:8080/ImmuneSystem/childrendata/sameChildren!query.action?cModId=11&cOption=4",
"Snapshot=t47.inf",
LAST);
web_concurrent_end(NULL);
lr_end_transaction("重复儿童查询",LR_AUTO);
return 0;
}
标红的是无法获得的页面。
现在又出现了新的情况,上午还能监控服务器资源的,但是现在竟然找不到网络路径,从上午到现在就没有人碰过服务器,我LR的设置也没有变动....难道是我的LR有问题吗?我的是LR 9.1** "Name=keyword", "Value=1", ENDITEM,
"Name=keyword", "Value=3", ENDITEM,
这里为什么有2个重名的?
还有cModId是干嘛用的,是否需要关联?
监控服务器找不到网络路径,查下服务器的Server、Workstation服务是否停了 keyword表示复选框的选中项;cModId表示模块的编号,cOption表示前台页面所做到操作(如cOption=4表示查询操作),这几个是在数据库中写死的。
找不到网络路径的问题是Remote Registry服务不知道怎么停止了,现在也好了。
现在解决了,是Tomcat的设置问题,我内存分配太小了,改大后就没这个问题,现在看看以前的analysis图也能看出是内存溢出的问题,呵呵,感谢大家! 这么诡异的情况还真的吓我一跳,无法想象并发数高通过,而并发数少还出错。。 本帖最后由 Kadar 于 2011-1-29 08:43 编辑
回复 15# beyond-lee
呵呵,刚开始我也是愣住了...只是不知道第一次50怎么会是成功的? 该站点是否需要启动服务?如果需要,重启一下。 学习一下! 有可能是关联没做或者是server有问题,需要重启。 :)楼主问得好,我也遇到了这个问题……
页:
[1]
2