|
现在在做一个性能测试.测试的是B/s结构的一个项目.服务器用的是linux操作系统,jboss是支持软件运行的服务器,数据库用的是mysql.
现在我在本地机器上准备测试我们部署在服务器上的应用程序,是一个医院的项目.
现出现以下几个问题:
1 录制了脚本,回放都没有问题,在controller中执行会出现问题!
2 我录制的事务在controller中运行基本上都失败,通过数很少,主要有以下几个错误:
(1)服务器过早关闭连接?服务器那边没关啊!!怎么会出现这样的错误?
(2)就是经常说的那个500错误.Action.c(32): Error -26612: HTTP Status-Code=500 (Internal Server Error)
就是这样的错误.请问这样的错误该怎么找源头?
(3)还有就是下载资源和非资源错误!
高手能大概说说是哪里有问题吗?
还有一点loadrunner的细节问题:
在配置负载生成器的时候,就是用我的localhost做为负载生成器吗?我都是这样做的.我认为是我这边生成负载去访问服务器,是不是负载生成器要配置成服务器那边的?如果是这样,在添加里怎么添加?
另外服务器那边用linux,我在我这边windows怎么监控服务器的linux资源?
最主要的帮我查为什么我的事务运行都失败,事务响应图都没有??
如有好心的高手希望能大概分析下,或者加我qq278876559,可以远程控制看一下我们的项目,具体分析一下.
下面是我录制的脚本:
Action()
{
lr_start_transaction("训练");
web_add_auto_header("Accept-Language",
"zh-cn");
lr_think_time(16);
web_submit_data("C30xl.jsp",
"Action=http://jageo.gnway.net/mtrainingtest/T20_training/C30xl.jsp",
"Method=POST",
"RecContentType=text/html",
"Referer=http://jageo.gnway.net/mtrainingtest/T20_training/xlsz.jsp",
"Snapshot=t6.inf",
"Mode=HTML",
ITEMDATA,
"Name=level", "Value=2", ENDITEM,
"Name=Submit3", "Value=开始训练", ENDITEM,
LAST);
lr_think_time(14);
web_submit_data("getresult.jsp",
"Action=http://jageo.gnway.net/mtrainingtest/T20_training/getresult.jsp",
"Method=POST",
"RecContentType=text/html",
"Referer=http://jageo.gnway.net/mtrainingtest/T20_training/C30xl.jsp",
"Snapshot=t7.inf",
"Mode=HTML",
ITEMDATA,
"Name=uid", "Value=123", ENDITEM,
"Name=cid", "Value=111", ENDITEM,
"Name=level", "Value=2", ENDITEM,
"Name=ans", "Value=正确", ENDITEM,
LAST);
web_url("T20_training.html",
"URL=http://jageo.gnway.net/mtrainingtest/T20_training/T20_training.html",
"Resource=0",
"RecContentType=text/html",
"Referer=http://jageo.gnway.net/mtrainingtest/T20_training/T20_training.html",
"Snapshot=t8.inf",
"Mode=HTML",
EXTRARES,
"Url=../MIDI/21.mid", "Referer=http://jageo.gnway.net/mtrainingtest/bgmusic.jsp", ENDITEM,
LAST);
lr_end_transaction("训练",LR_AUTO);
lr_start_transaction("查看结果");
lr_think_time(24);
web_url("result.jsp",
"URL=http://jageo.gnway.net/mtrainingtest/T20_training/result.jsp",
"Resource=0",
"RecContentType=text/html",
"Referer=http://jageo.gnway.net/mtrainingtest/T20_training/T20_training.html",
"Snapshot=t9.inf",
"Mode=HTML",
EXTRARES,
"Url=../img/dog.gif", ENDITEM,
LAST);
web_url("xlsz.jsp",
"URL=http://jageo.gnway.net/mtrainingtest/T20_training/xlsz.jsp",
"Resource=0",
"RecContentType=text/html",
"Referer=http://jageo.gnway.net/mtrainingtest/T20_training/T20_training.html",
"Snapshot=t10.inf",
"Mode=HTML",
EXTRARES,
"Url=../img/bear.gif", ENDITEM,
LAST);
lr_end_transaction("查看结果",LR_AUTO);
return 0;
}
Action.c(25): Error -26612: HTTP Status-Code=500 (Internal Server Error) for "http://jageo.gnway.net/mtrainingtest/T20_training/getresult.jsp" [MsgId: MERR-26612]
Action.c(25): web_submit_data("getresult.jsp") highest severity level was "ERROR", 2419 body bytes, 182 header bytes [MsgId: MMSG-26388]
Action.c(25): Notify: Transaction "训练" ended with "Fail" status (Duration: 0.8954).
录制完后,我编译没问题,说没有探测到错误,运行出现了问题.就是这个问题!
[ 本帖最后由 woaiguomi 于 2008-9-18 10:44 编辑 ] |
|