cexowyc 发表于 2009-10-9 18:21:04

Loadrunder Control VUser Failed的问题

脚本已经完成,回放无问题,使用Load Generator
设置如下


Run 开始的时候,马上就有11个user失败,


VUser图如下


请问下,一般这种问题会是什么原因

谢谢

fubaiciti 发表于 2009-10-9 19:17:52

Failed Vuser应该有log的吧,里面有错误描述吗?

cexowyc 发表于 2009-10-10 09:36:27

日志如下,会不会是因为服务器到了极限,处理不了了


Start auto log messages stack.       
Virtual User Script started       
Starting action vuser_init.       
vuser_init.c(12): web_add_header("Accept-Encoding") was successful       
vuser_init.c(15): web_add_header("Accept-Language") was successful       
vuser_init.c(18): web_add_header("User-Agent") was successful       
vuser_init.c(21): Error -26628: HTTP Status-Code=403 (Access Forbidden) for "http://192.168.30.29/CRMPerformanceTest/default.aspx"       
End auto log messages stack.       

cexowyc 发表于 2009-10-10 10:23:24

测试结果如下


10个失败的是在Init就失败了
Start auto log messages stack.       
Virtual User Script started       
Starting action vuser_init.       
vuser_init.c(12): web_add_header("Accept-Encoding") was successful       
vuser_init.c(15): web_add_header("Accept-Language") was successful       
vuser_init.c(18): web_add_header("User-Agent") was successful       
vuser_init.c(21): Error -26628: HTTP Status-Code=403 (Access Forbidden) for "http://192.168.30.29/CRMPerformanceTest/default.aspx"       
End auto log messages stack.       

导致设计时候的20个用户,只有10个用户在逻辑上并发

在成功的10个用户中有几个失败的,失败的日志有两种
第一种:
Start auto log messages stack - Iteration 5.       
Starting action Action.       
Action.c(6): web_add_auto_header("Accept-Encoding") was successful       
Action.c(9): web_add_auto_header("Accept-Language") was successful       
Action.c(12): web_add_auto_header("User-Agent") was successful       
Action.c(15): web_set_max_html_param_len was successful       
Action.c(17): Notify: Transaction "add" started.       
Action.c(21): Registering web_reg_save_param was successful       
Action.c(29): Current Dealer ID is 1400002275       
Action.c(31): Error -26612: HTTP Status-Code=500 (Internal Server Error) for "http://192.168.30.29/CRMPerformanceTest/default.aspx"       
Action.c(31): Error -26377: No match found for the requested parameter "DealerID". Check whether the requested boundaries exist in the response data. Also, if the data you want to save exceeds 9999 bytes, use web_set_max_html_param_len to increase the parameter size       
End auto log messages stack.       

DealerID 是我自定义的变量,从日志的Action.c(29)中可以看到,DealerID 已经取到了,但是,还是报 No match found for the requested parameter DealerID,请问会是什么原因,我已经将 web_set_max_html_param_len 设成了9999


第二种:

Start auto log messages stack - Iteration 12.       
Action.c(119): web_submit_form("default.aspx_5") was successful, 38188 body bytes, 334 header bytes       
Action.c(133): Notify: Transaction "hide" ended with "Pass" status (Duration: 0.0382).       
Action.c(135): lr_think_time: 7.31 seconds (recorded think time was 5.00 seconds).       
Action.c(137): Notify: Transaction "unhide" started.       
Action.c(139): Submitting form to "http://192.168.30.29/CRMPerformanceTest/default.aspx", Target Frame=""       
Action.c(139): web_submit_form("default.aspx_6") was successful, 38188 body bytes, 334 header bytes       
Action.c(153): Notify: Transaction "unhide" ended with "Pass" status (Duration: 0.2933).       
Action.c(155): lr_think_time: 7.19 seconds (recorded think time was 5.00 seconds).       
Action.c(157): Notify: Transaction "delete" started.       
Action.c(159): Submitting form to "http://192.168.30.29/CRMPerformanceTest/default.aspx", Target Frame=""       
Action.c(159): Error -26612: HTTP Status-Code=500 (Internal Server Error) for "http://192.168.30.29/CRMPerformanceTest/default.aspx"       
End auto log messages stack.       

应该说就是500的错误,服务器内部错误,是否可以说是代码有优化空间
页: [1]
查看完整版本: Loadrunder Control VUser Failed的问题