1. 程式人生 > >LoadRunner進行效能測試時遇到的問題彙總

LoadRunner進行效能測試時遇到的問題彙總

 問題源及解決方案:

1. Action.c(4): Error -27796: Failed to connect to server "10.10.10.2:81": [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

3.Error: Exception was raised when calling event-notify Vuser function in extension lrwreplaymain.dll: System Exceptions: EXCEPTION_ACCESS_VIOLATION

解決辦法:在C盤下新建一個TEMP目錄,把環境變數TMP,TEMP的值設定成C:\TEMP就ok

4.   Action.c(33): Error: C interpreter run time error: Action.c (33):  Error -- Unresolved symbol : vuser_end.

5.Action.c(77): Continuing after Error -27728: Step download timeout (120 seconds) has expired when downloading non-resource(s)

解決辦法:設定loadrunner9.1的設定過程,run-time setting---internet protocal----preferences----advanced--開啟options--修改General中Step download timeout(sec):600.
這個值根據自己的實際需要而設定。我這裡的場景是要下載一個附件,手工操作大概是3.4分鐘。

6.Action.c(33): Error: C interpreter run time error: Action.c (33):  Error -- Unresolved symbol : vuser_end.

--------意思是:user_end部分的語法錯誤。比如缺少下面這段中的某行:

user_end()

{

     return 0;

}

7.Connection to load generator failed.

Error: Process "lr_bridge.exe" was not created on remote host "192.168.170.161". Reason: communication error. Make sure the Agent process or service is running on the remote machine..    [MsgId: MERR-29987]

Error: Communication error: Failed to connect to remote host [server IP: 192.168.170.161].    [MsgId: MERR-10343

---------原因在於:使用controller載入另外的負載機,提示failed。

解決辦法:出現這種情況都是因為防火牆等之內的限制了。負載機是windows2008,裝的是LoadRunner9.5,上面沒有另外裝防火牆或者是防毒軟體。所以關閉掉windows防火牆(控制面板---防火牆---關閉)。