我的事物响应时间好像有点大,LR高手分析下
我用Controller 测试我的主页 http://localhost:8080/test/index.jsp事物响应时间看着比较大。下面是Trans Response Time(Sec)图。
我不明白的是我开了一个主页响应时间平均30sec?
[ 本帖最后由 sundf_good 于 2009-6-10 17:52 编辑 ] 去掉think time就好了 恩,我加think time 了,呵呵,我去改改 不是,我那个脚本加think time 了,当前问的这个问题脚本没有加think time ,云层大哥:handshake 你加个事务,看下回放脚本的时候多少时间? #include "as_web.h"
Action()
{
web_url("club",
"URL=http://localhost:8080/club",
"Resource=0",
"RecContentType=text/html",
"Referer=",
"Snapshot=t1.inf",
"Mode=HTML",
EXTRARES,
"Url=/club/images/top01_tonglan.gif", "Referer=http://localhost:8080/club/", ENDITEM,
"Url=/club/images/liw.gif", "Referer=http://localhost:8080/club/", ENDITEM,
"Url=/club/images/main01lft_down.gif", "Referer=http://localhost:8080/club/", ENDITEM,
"Url=/club/images/nav02line.gif", "Referer=http://localhost:8080/club/", ENDITEM,
"Url=/club/images/topbg0.gif", "Referer=http://localhost:8080/club/", ENDITEM,
"Url=/club/images/jiantou01.gif", "Referer=http://localhost:8080/club/", ENDITEM,
"Url=/club/images/top01_nav03.gif", "Referer=http://localhost:8080/club/", ENDITEM,
"Url=/club/images/down02_01_down.gif", "Referer=http://localhost:8080/club/", ENDITEM,
"Url=/club/images/button01.gif", "Referer=http://localhost:8080/club/", ENDITEM,
"Url=/club/images/top01_nav01.gif", "Referer=http://localhost:8080/club/", ENDITEM,
"Url=/club/images/rgt_news_mid.gif", "Referer=http://localhost:8080/club/", ENDITEM,
"Url=/club/images/line01.gif", "Referer=http://localhost:8080/club/", ENDITEM,
"Url=/club/images/rgt_news_up.gif", "Referer=http://localhost:8080/club/", ENDITEM,
"Url=/club/images/rgt_news_mark.gif", "Referer=http://localhost:8080/club/", ENDITEM,
"Url=/club/images/rgt_news_down.gif", "Referer=http://localhost:8080/club/", ENDITEM,
LAST);
return 0;
web_url("refreshstate.jsp_2",
"URL=http://localhost:8080/club/refreshstate.jsp?ref=http%3A//localhost%3A8080/club/&turl=http%3A//localhost%3A8080/club/%23",
"Resource=0",
"RecContentType=text/html",
"Referer=http://localhost:8080/club/",
"Snapshot=t5.inf",
"Mode=HTML",
LAST);
return 0;
}这是我的脚本。刚学嘿嘿 你看这哪加啊 代码中间的那一大段是什么啊,事务响应时间过长很可能就出现在那上面!!! 首先不该有两个return0,然后要是你怀疑结果的真实性,就降低并发用户,看响应有没有加快。假如并发数很少了时间还是很大,那更简单了,手工测一下不就行了么?老对着个图能看出什么东西来呢?
页:
[1]