急:请教用户数增加导致WebLogic线程不断增加的问题
有一个问题想请教高手,请多指教。有一个WebLogic的三层应用,用JSP实现。
用QALoad进行并发用户的测试,可以到500用户,应用正常运行。而用LoadRunner8.0(10000Users的License),选择协议Web(Http/HTML), 加到20Users系统正常, 而到30以上用户时, WebLogic端队列长度反复增加, LoadRunner无法得到相应, 测试失败。
请问高手是何种原因,多谢。。。 weblogic端队列指的是weblogic线程池吗?
loadrunner中,测试场景是怎么设置的?每个用户做多少笔交易?脚本能贴上来看看吗?
qaload我也使过,和lr差别不大。 Originally posted by sunshinelius at 2004-9-20 11:31 AM:
weblogic端队列指的是weblogic线程池吗?
loadrunner中,测试场景是怎么设置的?每个用户做多少笔交易?脚本能贴上来看看吗?
qaload我也使过,和lr差别不大。
脚本是:
#include "web_api.h"
#include "lrw_custom_body.h"
vuser_init()
{
web_add_cookie("Language=en; DOMAIN=192.168.126.153");
web_add_cookie("Country=US; DOMAIN=192.168.126.153");
web_url("start.jsp",
"URL=http://192.168.126.153:7001/start.jsp",
"Resource=0",
"RecContentType=text/html",
"Referer=",
"Snapshot=t1.inf",
"Mode=HTTP",
LAST);
web_concurrent_start(NULL);
web_url("stylesheet.css",
"URL=http://192.168.126.153:7001/stylesheet.css",
"Resource=1",
"Referer=http://192.168.126.153:7001/start.jsp",
LAST);
web_url("banner_login.gif",
"URL=http://192.168.126.153:7001/images/banner_login.gif",
"Resource=1",
"RecContentType=image/gif",
"Referer=http://192.168.126.153:7001/start.jsp",
LAST);
web_url("clear.gif",
"URL=http://192.168.126.153:7001/Images/clear.gif",
"Resource=1",
"RecContentType=image/gif",
"Referer=http://192.168.126.153:7001/start.jsp",
LAST);
web_url("clear.gif_2",
"URL=http://192.168.126.153:7001/images/clear.gif",
"Resource=1",
"RecContentType=image/gif",
"Referer=http://192.168.126.153:7001/start.jsp",
LAST);
web_url("login_patient.gif",
"URL=http://192.168.126.153:7001/images/login_patient.gif",
"Resource=1",
"RecContentType=image/gif",
"Referer=http://192.168.126.153:7001/start.jsp",
LAST);
web_url("login_admin.gif",
"URL=http://192.168.126.153:7001/images/login_admin.gif",
"Resource=1",
"RecContentType=image/gif",
"Referer=http://192.168.126.153:7001/start.jsp",
LAST);
web_url("login_physician.gif",
"URL=http://192.168.126.153:7001/images/login_physician.gif",
"Resource=1",
"RecContentType=image/gif",
"Referer=http://192.168.126.153:7001/start.jsp",
LAST);
web_concurrent_end(NULL);
web_url("鐧诲綍",
"URL=http://192.168.126.153:7001/physician/login.do",
"Resource=0",
"RecContentType=text/html",
"Referer=http://192.168.126.153:7001/start.jsp",
"Snapshot=t2.inf",
"Mode=HTTP",
LAST);
web_concurrent_start(NULL);
web_url("stylesheet.css_2",
"URL=http://192.168.126.153:7001/physician/stylesheet.css",
"Resource=1",
"Referer=http://192.168.126.153:7001/physician/login.do",
LAST);
web_url("physician_top_banner3.gif",
"URL=http://192.168.126.153:7001/physician/images/physician_top_banner3.gif",
"Resource=1",
"RecContentType=image/gif",
"Referer=http://192.168.126.153:7001/physician/login.do",
LAST);
web_url("clear.gif_3",
"URL=http://192.168.126.153:7001/physician/images/clear.gif",
"Resource=1",
"RecContentType=image/gif",
"Referer=http://192.168.126.153:7001/physician/login.do",
LAST);
web_url("physician_banner_photo.jpg",
"URL=http://192.168.126.153:7001/physician/images/physician_banner_photo.jpg",
"Resource=1",
"RecContentType=image/jpeg",
"Referer=http://192.168.126.153:7001/physician/login.do",
LAST);
web_concurrent_end(NULL);
web_submit_data("login.do",
"Action=http://192.168.126.153:7001/physician/login.do",
"Method=POST",
"RecContentType=text/html",
"Referer=http://192.168.126.153:7001/physician/login.do",
"Snapshot=t3.inf",
"Mode=HTTP",
ITEMDATA,
"Name=username", "Value=mary@md.com", ENDITEM,
"Name=password", "Value=weblogic", ENDITEM,
"Name=action", "Value=鐧诲綍", ENDITEM,
LAST);
web_concurrent_start(NULL);
web_url("stylesheet.css_3",
"URL=http://192.168.126.153:7001/physician/stylesheet.css",
"Resource=1",
"Referer=http://192.168.126.153:7001/physician/search.do",
LAST);
web_url("physician_top_banner3.gif_2",
"URL=http://192.168.126.153:7001/physician/images/physician_top_banner3.gif",
"Resource=1",
"RecContentType=image/gif",
"Referer=http://192.168.126.153:7001/physician/search.do",
LAST);
web_url("physician_banner_photo.jpg_2",
"URL=http://192.168.126.153:7001/physician/images/physician_banner_photo.jpg",
"Resource=1",
"RecContentType=image/jpeg",
"Referer=http://192.168.126.153:7001/physician/search.do",
LAST);
web_url("clear.gif_4",
"URL=http://192.168.126.153:7001/physician/images/clear.gif",
"Resource=1",
"RecContentType=image/gif",
"Referer=http://192.168.126.153:7001/physician/search.do",
LAST);
web_concurrent_end(NULL);
return 0;
}
Action()
{
web_submit_data("searchresults.do",
"Action=http://192.168.126.153:7001/physician/searchresults.do",
"Method=POST",
"RecContentType=text/html",
"Referer=http://192.168.126.153:7001/physician/search.do",
"Snapshot=t4.inf",
"Mode=HTTP",
ITEMDATA,
"Name=lastName", "Value=99", ENDITEM,
"Name=ssn", "Value=", ENDITEM,
"Name=action", "Value=鎼滅储", ENDITEM,
LAST);
web_concurrent_start(NULL);
web_url("stylesheet.css_4",
"URL=http://192.168.126.153:7001/physician/stylesheet.css",
"Resource=1",
"Referer=http://192.168.126.153:7001/physician/searchresults.do",
LAST);
web_url("physician_top_banner3.gif_3",
"URL=http://192.168.126.153:7001/physician/images/physician_top_banner3.gif",
"Resource=1",
"RecContentType=image/gif",
"Referer=http://192.168.126.153:7001/physician/searchresults.do",
LAST);
web_url("physician_banner_photo.jpg_3",
"URL=http://192.168.126.153:7001/physician/images/physician_banner_photo.jpg",
"Resource=1",
"RecContentType=image/jpeg",
"Referer=http://192.168.126.153:7001/physician/searchresults.do",
LAST);
web_url("clear.gif_5",
"URL=http://192.168.126.153:7001/physician/images/clear.gif",
"Resource=1",
"RecContentType=image/gif",
"Referer=http://192.168.126.153:7001/physician/searchresults.do",
LAST);
web_concurrent_end(NULL);
return 0;
}
Action()
{
web_submit_data("searchresults.do",
"Action=http://192.168.126.153:7001/physician/searchresults.do",
"Method=POST",
"RecContentType=text/html",
"Referer=http://192.168.126.153:7001/physician/search.do",
"Snapshot=t4.inf",
"Mode=HTTP",
ITEMDATA,
"Name=lastName", "Value=99", ENDITEM,
"Name=ssn", "Value=", ENDITEM,
"Name=action", "Value=鎼滅储", ENDITEM,
LAST);
web_concurrent_start(NULL);
web_url("stylesheet.css_4",
"URL=http://192.168.126.153:7001/physician/stylesheet.css",
"Resource=1",
"Referer=http://192.168.126.153:7001/physician/searchresults.do",
LAST);
web_url("physician_top_banner3.gif_3",
"URL=http://192.168.126.153:7001/physician/images/physician_top_banner3.gif",
"Resource=1",
"RecContentType=image/gif",
"Referer=http://192.168.126.153:7001/physician/searchresults.do",
LAST);
web_url("physician_banner_photo.jpg_3",
"URL=http://192.168.126.153:7001/physician/images/physician_banner_photo.jpg",
"Resource=1",
"RecContentType=image/jpeg",
"Referer=http://192.168.126.153:7001/physician/searchresults.do",
LAST);
web_url("clear.gif_5",
"URL=http://192.168.126.153:7001/physician/images/clear.gif",
"Resource=1",
"RecContentType=image/gif",
"Referer=http://192.168.126.153:7001/physician/searchresults.do",
LAST);
web_concurrent_end(NULL);
return 0;
} 脚本上我没看出问题。
楼主,你是不是并发30个用户,每个用户iteration次数设得很高啊。把你响应超时的那个运行场景描述一下,如何? Originally posted by sunshinelius at 2004-9-20 12:33 PM:
脚本上我没看出问题。
楼主,你是不是并发30个用户,每个用户iteration次数设得很高啊。把你响应超时的那个运行场景描述一下,如何?
iteration不高,都是1;
在执行数据查询时导致超时退出:Action=http://192.168.126.153:7001/physician/searchresults.do 我觉得不是lr这边的问题了。
你一边用lr施压,一边用IE登陆,查询,如果IE那边响应也很慢,就让开发人员来解决一下吧。
希望熟悉weblogic的朋友能加入这次讨论。
密切关注 问题解决了吗?想知道为什么会这样 还是不行 每帖必看!
看帖必回!
疯狂的刺猬 个人认为是没有设定Think Time的原因,一直加压一直并发,压力很大,但这不符合实际情况。测试结果不可信。 weblogic线程数有进行调整吗? 把weblogic的限制数设置大些试试 weblogic配置问题,进后台
页:
[1]