LR常见错误

教程发布:风哥 教程分类:ITPUX技术网 更新日期:2022-02-12 浏览学习:209

常见错误
如果脚本有问题,可以用单步调试的方法来进行排错处理(F10 快捷键)
1、常见错误1
错误描述如下:
ERROR -27796:Action.c(8)Error -27796 Failed to connect to server [错误!超链接引用无效。] Connection timed out
错误的可能原因:
a) 服务器连接数已经达到最大值
b) 服务器已经死掉
c) 网络速度慢
d) URL或是端口错误
尝试增加思考时间。

3、常见错误3
错误描述如下:
Error -26377 Action(14) Error -26377 No match found for the requested parameter “fcontent”. Check whether the requested boundaries exist in the response data . Also ,if the data you want to save exceeds 256 bytes ,use web_set_max_html_param_len to increase
错误的可能原因:
a) Web_reg_save_param,web_reg_find 等函数值没有取到或是关联的位置放置错误.
4、常见错误4
错误描述如下:
Error: timed out Error: Server “ 10.10.10 .30 ″ has shut down the connection prematurely.
错误的可能原因:
a) 应用服务死掉
b) 小用户时可能是程序上的问题,多用户数时可能是程序上处理数据库的问题。
c) 应用服务没有死
d) 可能是应用服务参数设置问题,例如在许多客户端连接 Weblogic 应用服务器被拒绝,而在服务器端没有错误显示,则有可能是 Weblogic 中的 server 元素的 AcceptBacklog 属性值设得过低。如果连接时收到 connection refused 消息,说明应提高该值,每次增加 25%。
e) 数据库的连接
f) 在应用服务的性能参数可能太小,也可能是数据库启动的最大连接数太多。
5、常见错误5
错误描述如下:
Error: Page download timeout (120 seconds) has expired
错误的可能原因:
a) 应用服务参数设置太大导致服务器的瓶颈
b) 页面中图片太多
c) 在程序

6.
Action.c(4): Error -27796: Failed to connect to server "10.1.101.142:80": [10048] Address already in use

Try changing the registry value

HKEY_LOCAL_MACHINE/System/CurrentControlSet/Services/tcpip/Parameters/TcpTimedWaitDelay to 30

and HKEY_LOCAL_MACHINE/System/CurrentControlSet/Services/tcpip/Parameters/MaxUserPort to 65534

and rebooting the machine

See the readme.doc file for more information

错误原因:
网页过于简单,服务器处理请求太快,客户端发出压力太快,所以把tcp/ip的连接占满。netstat –na命令,可以看到打开了很多端口

解决办法:

在场景或者脚本中的runtimesetting中选择Preferences 勾选Winlnet replay instead of sockets(windows only)

(修改HKEY_LOCAL_MACHINE\System\CurrentControlSet\Services\tcpip\Parameters 下TcpTimedWaitDelay 的值从30改为1,重启压力机

如果继续报错,脚本中增加lr_think_time(1);)

HP-UNIX
Monitor name :UNIX Resources. Cannot initialize the monitoring on 10.1.101.167. Error while creating the RPC client. Ensure that the machine can be connected and that it runs the rstat daemon (use rpcinfo utility for this verification). Detailed error: RPC: Failed to create RPC client.

解决办法:
root 用户
cd /etc
ll inetd*
vi inetd.conf

将#去掉:rpc xti datagram_v wait root /usr/lib/netsvc/rstat/rpc.rstatd 100001 2-4 rpc.rstatd
启用RPC服务
1、ps -ef | grep inetd 找出inetd进程的PID
kill -9
startsrc -s inetd 启动inetd进程

查看rstatd是否启动
输入命令:
rpcinfo -p

本文标签:
本文标题:LR常见错误
网站声明:本文由风哥整理发布,转载请保留此段声明,本站所有内容将不对其使用后果做任何承诺,请读者谨慎使用!
【上一篇】
【下一篇】