|
1、从100到600并发增加,但是响应时间却没有下降,是否说明在100之前系统的处理能力已经达到极限了呢?建议从10到100,10个加一次,步进式测试,观察tps和throughout曲线走势,加压到响应时间不动,吞吐量曲线趋于直线的那个点应该就是并发数极限了。
2、加了检查点失败的反而变多,是否说明没有加检查点的时候运行的成功基本都是假的呢?建议http模式测试多使用这种模式写脚本,可能效果更加可信一些:
- lr_start_transaction("05 查询加人处理任务");
- web_reg_find("Text=待获取",
- "Fail=NotFound",
- "SaveCount=QueryTask",
- "Search=Body",
- LAST);
- web_reg_save_param("workTaskid",
- "LB=getWorkTask('",
- "RB=','",
- "Ord=1",
- "NotFound=ERROR",
- LAST);
- web_submit_data("searchQueueTask.do",
- "Action=http://XXXXX.com.cn:43026/XXXX/searchQueueTask.do",
- "Method=POST",
- "RecContentType=text/html",
- "Referer=http://XXXXX.com.cn:43026/XXXX/searchQueueTask.do",
- "Snapshot=t21.inf",
- "Mode=HTML",
- ITEMDATA,
- "Name=workTableConditionDTO.currentRole", "Value=pos_processing", ENDITEM,
- "Name=workTableConditionDTO.branchCode", "Value=G12", ENDITEM,
- "Name=workTableConditionDTO.startApplySeq", "Value=PA{applySeqNo}", ENDITEM,
- "Name=workTableConditionDTO.endApplySeq", "Value=PA{applySeqNo}", ENDITEM,
- "Name=workTableConditionDTO.policyNo", "Value={policyNo}", ENDITEM,
- "Name=workTableConditionDTO.applicantName", "Value={appName}", ENDITEM,
- "Name=workTableConditionDTO.taskPriorityTypeCode", "Value=", ENDITEM,
- "Name=workTableConditionDTO.startApplyDate", "Value=20081213", ENDITEM,
- "Name=workTableConditionDTO.endApplyDate", "Value={appReadyDate}", ENDITEM,
- "Name=workTableConditionDTO.barCode", "Value={barCode}", ENDITEM,
- "Name=workTableConditionDTO.difficultyTypeCode", "Value=", ENDITEM,
- LAST);
- if (atoi(lr_eval_string("{QueryTask}"))<=0)
- {
- lr_error_message("*=*=*=*=*=*=*=*=*=*=*=*=*=*查询加人处理任务 失败!*=*=*=*=*=*=*=*=*=*=*=*=*=*");
- lr_end_transaction("05 查询加人处理任务", LR_FAIL);
- }
- else
- {
- lr_end_transaction("05 查询加人处理任务", LR_PASS);
- lr_output_message("*=*=*=*=*=*=*=*=*=*=*=*=*=*查询加人处理任务 成功!*=*=*=*=*=*=*=*=*=*=*=*=*=*");
- lr_output_message("*=*=*=*=*=*=*=*=*=*=*=*=*=*查询到的任务ID workTaskid 为:%s", lr_eval_string("{workTaskid}"));
- }
复制代码 |
|