【問題】Error -10776 Failed to find .cfg file
錯誤分析:在loadrunner打開腳本的狀況下,運行磁盤清理工具,致使運行打開的腳本時,提示Mdrv error:Failed to find .cfg file MsgId:MERR-10777
解決方法:從其它文件夾拷貝3個文件到不能正常運行腳本的文件夾下:
default.cfg
default.usp
*.prm(將*的位置改成腳本的名字)
再次運行腳本,能夠正常運行html
【問題】 Error -13874: missing newline in C:\Users\Administrator\AppData\Local\Temp\brr_YAR.13\netdir\C\TestingResult\StressTest.2\Script\交強險投保\username.dat
錯誤分析:The .dat file needs to have an empty line at the bottom of the file. Also, not sure if all your data is on one line,。
解決辦法:Put your cursor on it innotepad/whatever you are using to edit your dat files, note that is an empty line at the bottom。web
【問題】Fatal Error -26000: Not enough memory (12320 bytes) for "new buffer in LrwSrvNetTaskItem::AllocSrvNetBuf". Aborting
錯誤分析:報錯的時候發現任務管理器裏mmdrv.exe 內存佔用一直增大,最紅mmdrv.exe崩潰(LR兼容C,C語言中內存要手動釋放)
解決辦法:注意內存的使用,儘可能減小變量聲明,new 的變量用完後要及時用free:服務器
【問題】回放時lr報錯:Error -26488: Could not obtain informationabout submitted file
錯誤分析:通常狀況下上傳文件腳本,會報這個錯誤,緣由爲找不到文件
解決辦法:錄製完腳本後,把要上傳的文件放到腳本存放的文件夾裏面,從新回放就ok網絡
【問題】 Error -26601: Decompression function (wgzMemDecompressBuffer) failed, return code=-5 (Z_BUF_ERROR), inSize=0, inUse=0,
問題緣由:這個錯誤爲數據包較大,未下載完整或其餘緣由致使解壓錯誤。
解決辦法:Runtime-setting--->Internet Protocol--->Preferences--->Options--->General->Network buffer size,設置爲122880(默認值爲12288)
Runtime-setting--->Internet Protocol--->Preferences--->Options--->General->Default block size for Dom memory,設置爲163840(默認值爲16384)併發
【問題】Error-26608: HTTP Status-Code=504(Gateway Time-out)
解決辦法:
1.在Vuser Generator中的Tools--->Recording Options...--->Recording--->HTTP-based script--->HTML Advanced按鈕--->在Script type中選擇A script containing explicit URLs only(e.g.web_url,web_submit_data)點擊「ok」便可
2.runtime-setting, browser emulation, 取消選擇download non-HTML resources便可socket
【問題】Error -26610: HTTP Status-Code=502 (Bad Gateway) for "https://***s.com/login/login"
【問題】Error -27727: Step download timeout (120 seconds) has expired when downloading resource(s).
錯誤分析:對於HTTP協議,默認的超時時間是120秒(能夠在Run-time Settings中修改),客戶端發送一個請求到端尚未返回結果,則出現超時錯誤。
解決辦法:Set the "Step Timeout caused by resources is a warning" Run-Time Setting to Yes/No to have this message as a warning/error, respectively高併發
【問題】 Error -27728: Step download timeout (120 seconds) has expired
錯誤分析:對於HTTP協議,默認的超時時間是120秒(能夠在Run-time Settings中修改),客戶端發送一個請求到端尚未返回結果,則出現超時錯誤。
解決辦法:首先在運行環境中對超時進行設置,默認的超時時間能夠設置長一些,再設置屢次迭代運行,若是還有超時現象,須要在「Runtime Setting」>「Internet Protocol:Preferences」>「Advanced」區域中設置一個「winlnet replay instead of sockets」選項,再回放是否成功工具
【問題】 Error -27791: Server "pcisstage.zsins.com" has shut down the connection prematurely
解決辦法:測試中,併發200,300,400人時,LR沒報錯,在併發500人時,LR報錯」Error -27791: Server "172.16.xx.xxx" has shut down the connection prematurely「,同時查看WEB服務器日誌:出現這樣一條信息:post
」INFO: Maximum number of threads (200) created for connector with address null and port 8081「測試
查看配置文件參數:
<Connector port="8080" protocol="HTTP/1.1"
connectionTimeout="20000"
redirectPort="8443" />
採用的是默認配置,這樣在高併發狀況下確定撐不住,因此修改參數配置以下:
<Connector port="8081" protocol="HTTP/1.1"
maxThreads="500" acceptCount="500" connectionTimeout="20000"
redirectPort="8443" />
從新測試,事物所有成功,系統也未報錯。
出現」Error -27791: Server "172.16.xx.xxx" has shut down the connection prematurely「的緣由即有多是操做系統網絡線程鏈接資源的緣由,也多是應用軟件的緣由,當出現問題,隨時查看系統日誌,能幫助咱們更快的定位問題。
【問題6】Error -27796: Failed to connect to server "10.2.9.147:80":
解決辦法:runtime-setting, browser emulation, 將默認勾選的simulate a new vuser on each iteration取消勾選
【問題】Error -29724 : Failed to deliver a p2p message from parent to child process, reason - communication error.
【問題】Error -30935 "Error: Failed to send data by channels – post message failed."
解決辦法1: 在LR的controller負載生成器的菜單欄,單擊【Diagnostics】》configuration》Web Page Diagnostics【Max Vuser Sampling 10%】設置爲【Eenable】。
解決辦法2:直接去掉勾選Enable the following diagnostics便可。
【問題】Error -35061: No match found for the requested parameter "CorrelationParameter_2". 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 the parameter size [MsgId: MERR-35061]
解決辦法1:能夠用web_set_max_html_param_len增長參數長度,我試過到99999999共8位
web_set_max_html_param_len("9999999"); // 以消耗系統資源爲代價
解決辦法2:還有,你能夠在web_reg_save_param_ex(
"ParamName=CorrelationParameter_3", "LB=c",
"RB=>\n<table border",
後面 加上 "NotFound=warning", 保存編譯下,就不回再提是錯誤了。 主要是自動關聯形成的左右邊界定位不精確,須要保存的值大