xiaohaijun176 发表于 2009-1-18 18:10:54

为什么 我的LR 的Vusr 都是 pending状态的呢

我运行LR去测试一个点击页面的脚本,却发现 一开始 运行的 Vuser 只有两个 且其中一个 Pending ... The Vuser is waiting to be initialized. 另外一个一直是 pending, 2分钟后增加为总共4个 的为pending, 但我设置的是 Using a minimum of 10 and a maximum of 100的啊 ,而 Ramp up 则是 5 hits per second. every 2 M

其次,他用 load generator 在 Vusers 中 显示的 都是 另外一个(虚拟机出来的),而我选择的则是 本地和这个是一起用的。

因为我设置达不到目标就停止,所以4分钟后它就提示达不到目标了。此时为四个Pending 的Vusers 其中一个还是 The Vuser is waiting to be initialized 状态。

有谁能帮我解答下吗
这是什么原因呢?

archonwang 发表于 2009-1-19 10:11:43

目标设定不合理导致。建议调整目标设置。

xiaohaijun176 发表于 2009-1-19 13:55:57

回复 2# 的帖子

每秒 HIt 20下的 目标应不算高吧?我的 电脑配置也不低 哦 :Dual-Core e5200 , 2G 的内存了呢

archonwang 发表于 2009-1-21 10:20:15

这样也说不太清楚,楼主你把脚本传上来看看。

tttrrryyy 发表于 2009-1-21 11:05:24

目标设置不合理是果,Vuser 处于pending是因,楼上的弄反了
对于像这类未遇见过的问题就逐步排查原因吧
先看有没有error产生,在runtime settings里面将log的选项勾上,看是什么造成跑不下去
把load generator设为localhost, vuser设为1,不要用goal oriented,看看场景是否能正常运行,排除脚本上的问题先
如果没有问题,再看是否脚本中里有没有相应的设置,比如IP等等,放到另一台机器来跑会否造成无法访问,不动手试靠猜的怎么能行

xiaohaijun176 发表于 2009-1-21 22:46:33

回复 4# 的帖子

用下面的脚本出现的都是 fail transactions...


Action()
{

        web_add_cookie("id=200000017469dd1f||t=1232263893|et=730|cs=4y0a494h; DOMAIN=googleads.g.doubleclick.net");

        web_url("www.pockoo.com",
                "URL=http://www.pockoo.com/",
                "Resource=0",
                "RecContentType=text/html",
                "Referer=",
                "Snapshot=t12.inf",
                "Mode=HTML",
                EXTRARES,
                "Url=/templets/images/smalllogo.gif", ENDITEM,
                "Url=/templets/images/container_bg.gif", ENDITEM,
                "Url=http://googleads.g.doubleclick.net/pagead/test_domain.js", ENDITEM,
                "Url=http://pagead2.googlesyndication.com/pagead/render_ads.js", ENDITEM,
                "Url=/templets/images/boxtop_970.gif", ENDITEM,
                "Url=/templets/images/ico_4.gif", ENDITEM,
                "Url=/templets/images/ad_label.gif", ENDITEM,
                "Url=/bcastr31.swf", ENDITEM,
                "Url=/templets/images/topline_botbg.gif", ENDITEM,
                "Url=/templets/images/flink_title_bg.gif", ENDITEM,
                "Url=/templets/images/article_ico_1.gif", ENDITEM,
                "Url=/templets/images/article_ico_2.gif", ENDITEM,
                "Url=/templets/images/title_ico.gif", ENDITEM,
                "Url=/templets/images/boxbottom_320.gif", ENDITEM,
                "Url=/templets/images/boxbottom_435.gif", ENDITEM,
                "Url=/templets/images/boxbottom_760.gif", ENDITEM,
                "Url=/templets/images/boxbottom_377.gif", ENDITEM,
                "Url=/templets/images/boxbottom_200.gif", ENDITEM,
                "Url=/templets/images/title_bg_1.gif", ENDITEM,
                "Url=/templets/images/boxbottom_970.gif", ENDITEM,
                "Url=/templets/images/navbar_bg.gif", ENDITEM,
                LAST);

        web_url("ads",
                "URL=http://googleads.g.doubleclick.net/pagead/ads?client=ca-pub-3243943944967448&dt=1232265130000&lmt=1232265130&output=html&slotname=2461577324&correlator=1232265130000&url=http%3A%2F%2Fwww.pockoo.com%2F&ea=0&frm=0&ga_vid=1142029538.1232265134&ga_sid=1232265134&ga_hid=472889301&flash=10.0.12.36&u_h=1050&u_w=1680&u_ah=1020&u_aw=1680&u_cd=32&u_tz=480&u_java=true&dtd=M",
                "Resource=0",
                "RecContentType=text/html",
                "Referer=http://www.pockoo.com/",
                "Snapshot=t13.inf",
                "Mode=HTML",
                LAST);

        web_url("ads_2",
                "URL=http://googleads.g.doubleclick.net/pagead/ads?client=ca-pub-3243943944967448&dt=1232265133984&lmt=1232265133&prev_slotnames=2461577324&output=html&slotname=7352696471&correlator=1232265130000&url=http%3A%2F%2Fwww.pockoo.com%2F&ea=0&frm=0&ga_vid=1142029538.1232265134&ga_sid=1232265134&ga_hid=472889301&flash=10.0.12.36&u_h=1050&u_w=1680&u_ah=1020&u_aw=1680&u_cd=32&u_tz=480&u_java=true&dtd=391",
                "Resource=0",
                "RecContentType=text/html",
                "Referer=http://www.pockoo.com/",
                "Snapshot=t14.inf",
                "Mode=HTML",
                LAST);

        web_url("index.xml",
                "URL=http://www.pockoo.com/index.xml",
                "Resource=0",
                "RecContentType=text/xml",
                "Referer=http://www.pockoo.com/bcastr31.swf",
                "Snapshot=t15.inf",
                "Mode=HTML",
                EXTRARES,
                "Url=/rotator/crystaldefenders.jpg", "Referer=http://www.pockoo.com/bcastr31.swf", ENDITEM,
                LAST);

        web_url("ads_3",
                "URL=http://googleads.g.doubleclick.net/pagead/ads?client=ca-pub-3243943944967448&dt=1232265135171&lmt=1232265135&prev_slotnames=2461577324%2C7352696471&output=html&slotname=8037432757&correlator=1232265130000&url=http%3A%2F%2Fwww.pockoo.com%2F&ea=0&frm=0&ga_vid=1142029538.1232265134&ga_sid=1232265134&ga_hid=472889301&flash=10.0.12.36&u_h=1050&u_w=1680&u_ah=1020&u_aw=1680&u_cd=32&u_tz=480&u_java=true&dtd=125",
                "Resource=0",
                "RecContentType=text/html",
                "Referer=http://www.pockoo.com/",
                "Snapshot=t16.inf",
                "Mode=HTML",
                EXTRARES,
                "Url=http://www.pockoo.com/rotator/rolando.jpg", "Referer=http://www.pockoo.com/bcastr31.swf", ENDITEM,
                "Url=http://www.pockoo.com/rotator/simcity.jpg", "Referer=http://www.pockoo.com/bcastr31.swf", ENDITEM,
                "Url=http://www.pockoo.com/rotator/thechroniclesofinotia.jpg", "Referer=http://www.pockoo.com/bcastr31.swf", ENDITEM,
                "Url=http://www.pockoo.com/rotator/ucweb.jpg", "Referer=http://www.pockoo.com/bcastr31.swf", ENDITEM,
                LAST);

        lr_think_time(45);

        web_url("iphone.pockoo.com",
                "URL=http://iphone.pockoo.com/",
                "Resource=0",
                "RecContentType=text/html",
                "Referer=http://www.pockoo.com/",
                "Snapshot=t17.inf",
                "Mode=HTML",
                LAST);

        web_url("ads_4",
                "URL=http://googleads.g.doubleclick.net/pagead/ads?client=ca-pub-3243943944967448&dt=1232265190796&lmt=1232265190&output=html&slotname=2461577324&correlator=1232265190796&url=http%3A%2F%2Fiphone.pockoo.com%2F&ea=0&ref=http%3A%2F%2Fwww.pockoo.com%2F&frm=0&ga_vid=498507771.1232265191&ga_sid=1232265191&ga_hid=1066126271&flash=10.0.12.36&u_h=1050&u_w=1680&u_ah=1020&u_aw=1680&u_cd=32&u_tz=480&u_his=1&u_java=true&dtd=454",
                "Resource=0",
                "RecContentType=text/html",
                "Referer=http://iphone.pockoo.com/",
                "Snapshot=t18.inf",
                "Mode=HTML",
                LAST);

        web_url("ads_5",
                "URL=http://googleads.g.doubleclick.net/pagead/ads?client=ca-pub-3243943944967448&dt=1232265193906&lmt=1232265193&prev_slotnames=2461577324&output=html&slotname=7352696471&correlator=1232265190796&url=http%3A%2F%2Fiphone.pockoo.com%2F&ea=0&ref=http%3A%2F%2Fwww.pockoo.com%2F&frm=0&ga_vid=498507771.1232265191&ga_sid=1232265191&ga_hid=1066126271&flash=10.0.12.36&u_h=1050&u_w=1680&u_ah=1020&u_aw=1680&u_cd=32&u_tz=480&u_his=1&u_java=true&dtd=484",
                "Resource=0",
                "RecContentType=text/html",
                "Referer=http://iphone.pockoo.com/",
                "Snapshot=t19.inf",
                "Mode=HTML",
                LAST);

        web_url("iphone.xml",
                "URL=http://www.pockoo.com/iphone.xml",
                "Resource=0",
                "RecContentType=text/xml",
                "Referer=http://www.pockoo.com/bcastr31.swf",
                "Snapshot=t20.inf",
                "Mode=HTML",
                EXTRARES,
                "Url=/rotator/%d0%d6%b5%dc%c1%ac.jpg", "Referer=http://www.pockoo.com/bcastr31.swf", ENDITEM,
                "Url=/rotator/nanosaur2.jpg", "Referer=http://www.pockoo.com/bcastr31.swf", ENDITEM,
                "Url=/rotator/iphonecostume.jpg", "Referer=http://www.pockoo.com/bcastr31.swf", ENDITEM,
                LAST);

        return 0;
}

hongbo 发表于 2010-3-1 16:59:20

我也遇到了这种情况!

曾淳淳 发表于 2016-3-14 16:04:27

楼主有确定是什么原因了么?分享下
页: [1]
查看完整版本: 为什么 我的LR 的Vusr 都是 pending状态的呢