loadrunner施压过程中出现错误的日志
各位大侠:求助!!
我并发测试一个登陆,录制完成后进行施压,在施压过程中出现下面的错误,求各位帮忙看一下,万分感谢~~
Start auto log messages stack - Iteration 18.
Action.c(30): Notify: Transaction "打开页面" ended with "Pass" status (Duration: 2.0809).
Action.c(32): Rendezvous 登录
Action.c(35): Notify: Transaction "点击登录" started.
Action.c(38): Resource "http://192.168.0.8/TestIBM2/flow/images/change/login.jpg" is in the cache already and will not be downloaded again
Action.c(38): Found resource "http://192.168.0.8/TestIBM2/Verifier.axd?sid=2c23add2-2286-43b6-9d90-950d68e51e17" in HTML "http://192.168.0.8/TestIBM2/Login.aspx"
Action.c(38): web_submit_data("Login.aspx_2") was successful, 7334 body bytes, 459 header bytes
Action.c(91): Retrieving data from cache for "http://192.168.0.8/TestIBM2/blank.html"
Action.c(91): web_url("blank.html") was successful, 0 body bytes, 0 header bytes
Action.c(143): Error -26612: HTTP Status-Code=500 (Internal Server Error) for "http://192.168.0.8/TestIBM2/MainPage.aspx"
End auto log messages stack.
脚本:
Action()
{
lr_start_transaction("打开页面");
web_url("Login.aspx",
"URL=http://192.168.0.8/TestIBM2/Login.aspx",
"TargetFrame=",
"Resource=0",
"RecContentType=text/html",
"Referer=",
"Snapshot=t1.inf",
"Mode=HTML",
LAST);
/* web_url("换一张",
"URL=http://192.168.0.8/TestIBM2/Login.aspx",
"TargetFrame=",
"Resource=0",
"RecContentType=text/html",
"Referer=",
"Snapshot=t2.inf",
"Mode=HTML",
EXTRARES,
"Url=flow/images/blueImages/main/button.jpg", ENDITEM,
LAST); */
lr_end_transaction("打开页面", LR_AUTO);
lr_rendezvous("登录");
lr_start_transaction("点击登录");
web_submit_data("Login.aspx_2",
"Action=http://192.168.0.8/TestIBM2/Login.aspx",
"Method=POST",
"TargetFrame=",
"RecContentType=text/html",
"Referer=http://192.168.0.8/TestIBM2/Login.aspx",
"Snapshot=t3.inf",
"Mode=HTML",
ITEMDATA,
"Name=__VIEWSTATE", "Value=/wEPDwUKLTUwMjk2MDk5MmQYAQUMdmFsaWRhdGVDb2RlDw9kBSQyYzIzYWRkMi0yMjg2LTQzYjYtOWQ5MC05NTBkNjhlNTFlMTdk5IZxwPR/a3GpKBoPTULko+ZPnzw=", ENDITEM,
"Name=__EVENTVALIDATION", "Value=/wEWBQLcqOnqBALcgpeMBwLGmdGVDAKMhs7EAgKfwImNC9sxfnQ4651PeqGF2EWf7DPvDoVE", ENDITEM,
"Name=user", "Value={NewParam}", ENDITEM,
"Name=pwd", "Value=qwe123", ENDITEM,
"Name=validate", "Value=", ENDITEM,
"Name=ctl02", "Value=鐧诲綍", ENDITEM,
"Name=screenHeight", "Value=930", ENDITEM,
"Name=clientHeight", "Value=790", ENDITEM,
LAST);
/*web_submit_data("Login.aspx_3",
"Action=http://192.168.0.8/TestIBM2/Login.aspx",
"Method=POST",
"TargetFrame=",
"RecContentType=text/html",
"Referer=http://192.168.0.8/TestIBM2/Login.aspx",
"Snapshot=t4.inf",
"Mode=HTML",
ITEMDATA,
"Name=__VIEWSTATE", "Value=/wEPDwUKLTUwMjk2MDk5MmQYAQUMdmFsaWRhdGVDb2RlDw9kBSQyYzIzYWRkMi0yMjg2LTQzYjYtOWQ5MC05NTBkNjhlNTFlMTdk5IZxwPR/a3GpKBoPTULko+ZPnzw=", ENDITEM,
"Name=__EVENTVALIDATION", "Value=/wEWBQLcqOnqBALcgpeMBwLGmdGVDAKMhs7EAgKfwImNC9sxfnQ4651PeqGF2EWf7DPvDoVE", ENDITEM,
"Name=user", "Value=test00001", ENDITEM,
"Name=pwd", "Value=qwe123", ENDITEM,
"Name=validate", "Value=", ENDITEM,
"Name=ctl02", "Value=鐧诲綍", ENDITEM,
"Name=screenHeight", "Value=930", ENDITEM,
"Name=clientHeight", "Value=790", ENDITEM,
EXTRARES,
"Url=images/hometopbg.gif", ENDITEM,
"Url=images/bottom_mid.gif", ENDITEM,
"Url=images/bottom_right.gif", ENDITEM,
"Url=images/bottom_left.gif", ENDITEM,
"Url=images/serviceonline.gif", ENDITEM,
"Url=images/hometopimg.jpg", ENDITEM,
"Url=images/exit_off.gif", ENDITEM,
"Url=images/menubar_bottombg.gif", ENDITEM,
"Url=images/positionBack.gif", ENDITEM,
"Url=images/menubar_leftline.gif", ENDITEM,
"Url=images/menuitem_linked.gif", ENDITEM,
"Url=images/menuitem_offbg.gif", ENDITEM,
"Url=images/grouptitlebg.gif", ENDITEM,
"Url=images/exit_on.gif", ENDITEM,
LAST);
*/
web_url("blank.html",
"URL=http://192.168.0.8/TestIBM2/blank.html",
"TargetFrame=",
"Resource=0",
"Referer=http://192.168.0.8/TestIBM2/Login.aspx",
"Mode=HTML",
LAST);
/* web_url("blank.html_2",
"URL=http://192.168.0.8/TestIBM2/blank.html",
"TargetFrame=",
"Resource=0",
"Referer=http://192.168.0.8/TestIBM2/Login.aspx",
"Mode=HTML",
LAST);
web_url("blank.html_3",
"URL=http://192.168.0.8/TestIBM2/blank.html",
"TargetFrame=",
"Resource=0",
"Referer=http://192.168.0.8/TestIBM2/Login.aspx",
"Mode=HTML",
LAST);
web_url("blank.html_4",
"URL=http://192.168.0.8/TestIBM2/blank.html",
"TargetFrame=",
"Resource=0",
"RecContentType=text/html",
"Referer=http://192.168.0.8/TestIBM2/Login.aspx",
"Snapshot=t5.inf",
"Mode=HTML",
LAST);
web_url("blank.html_5",
"URL=http://192.168.0.8/TestIBM2/blank.html",
"TargetFrame=",
"Resource=0",
"Referer=http://192.168.0.8/TestIBM2/Login.aspx",
"Mode=HTML",
LAST);
web_url("blank.html_6",
"URL=http://192.168.0.8/TestIBM2/blank.html",
"TargetFrame=",
"Resource=0",
"RecContentType=text/html",
"Referer=http://192.168.0.8/TestIBM2/Login.aspx",
"Snapshot=t6.inf",
"Mode=HTML",
LAST);*/
web_url("MainPage.aspx",
"URL=http://192.168.0.8/TestIBM2/MainPage.aspx",
"TargetFrame=",
"Resource=0",
"RecContentType=text/html",
"Referer=http://192.168.0.8/TestIBM2/Login.aspx",
"Snapshot=t7.inf",
"Mode=HTML",
LAST);
/*web_url("全球最理想雇主50强出炉 11-6",
"URL=http://192.168.0.8/TestIBM2/MainPage.aspx",
"TargetFrame=",
"Resource=0",
"RecContentType=text/html",
"Referer=http://192.168.0.8/TestIBM2/Login.aspx",
"Snapshot=t8.inf",
"Mode=HTML",
EXTRARES,
"Url=images/work_input.gif", ENDITEM,
"Url=images/ico_avigation.png", ENDITEM,
"Url=images/sidebartop_bg.gif", ENDITEM,
"Url=images/icon_edit.gif", ENDITEM,
"Url=images/img_Consultant.gif", ENDITEM,
"Url=images/img_OnlineService.gif", ENDITEM,
"Url=images/mytaskbg_left.gif", ENDITEM,
"Url=images/mytaskbg_right.gif", ENDITEM,
"Url=images/subtab.gif", ENDITEM,
"Url=images/tab_button.gif", ENDITEM,
"Url=images/search_img.gif", ENDITEM,
"Url=images/more.gif", ENDITEM,
"Url=images/newDot.gif", ENDITEM,
LAST);*/
lr_end_transaction("点击登录",LR_AUTO);
lr_start_transaction("点击退出");
web_url("login.aspx",
"URL=http://192.168.0.8/TestIBM2/login.aspx",
"TargetFrame=",
"Resource=0",
"RecContentType=text/html",
"Referer=",
"Snapshot=t9.inf",
"Mode=HTML",
LAST);
/* web_url("换一张_2",
"URL=http://192.168.0.8/TestIBM2/login.aspx",
"TargetFrame=",
"Resource=0",
"RecContentType=text/html",
"Referer=",
"Snapshot=t10.inf",
"Mode=HTML",
LAST);*/
lr_end_transaction("点击退出",LR_AUTO);
return 0;
}
并发:300个,持续时间为5分钟 一下子300用户绝对并发 压力是不是太大了
而且我个人觉得你5分钟太短了问题不好定位,可以尝试15分钟 又是500 Internal Server Error,请问是增加到几个用户并发就出现这个错误了? 关注中, 最好看下服务器的日志,估计是服务器的内部错误导致的,至于产生原因,需视具体情况分析。 我想问一下,如何查看服务器日志,是在C:\WINDOWS\system32\LogFiles目录下的日志吗?还是其他日志。 服务器中我找到了这个, 只知道关于get /TestIBM3/MainPage.aspx 的时候,服务器发生内部错误,除了这个还能看出什么?
2010-05-14 08:59:04 W3SVC1 192.168.0.8 GET /TestIBM3/MainPage.aspx - 80 - 192.168.0.122 Mozilla/4.0+(compatible;+MSIE+7.0;+Windows+NT+5.1;+.NET+CLR+2.0.50727;+.NET+CLR+3.0.04506.648;+.NET+CLR+3.5.21022) 500 0 0 这个的看你那个aspx产生的错误日志是由什么服务器产生的,要看服务器的日志.至于服务器的日志在那里这个的看你服务器是怎么设置的,或者问开发人员
页:
[1]