Error: “-27780: read to host failed: 10054 Connection reset by peer”

Error: "-27780: read to host failed: [10054] Connection reset by peer"

If you are getting the following error messages during replay of a Web script:

"Error -27780: read to host <host name> failed: [10054] Connection reset by peer"
"Error -27790: Failed to read data from server <host name>"

Diagnosis: The client sends a POST request to the server and gets a response with HTTP status 200, connection close and redirection using both JS code and meta-refresh. There is no content-length, so the client is supposed to decide when to close the connection. Internet Explorer closes the connection before sending the request to the redirection URL. But, LoadRunner does not; later the server closes the connection, and the result is the error message.

For the specific situation described herein, try adding the following step after the POST step:

web_set_sockets_option("CLOSE_KEEPALIVE_CONNECTIONS", "1");

This step closes all the open connections, and as a result, LoadRunner stops waiting for the rest of the response of the redirection.

NOTE: 10054 is a generic Microsoft network error — it is also possible for this error to be caused as a result of the application server being too heavily loaded, or due to a network/OS issue, or even due to an anti-virus/firewall on the server. See http://www.google.com/search?hl=en&q=cause+10054

Advertisements

What user permissions are needed on a machine to install and run LoadRunner

What user permissions are needed on a machine to install and run LoadRunner

Administrator for installation and power user for running LoadRunner

Installation:
A user must be logged in as administrator to install LoadRunner.

Usage:
It is recommended to be a member of at least power users to run LoadRunner. Sometimes, due to security restrictions, this is not possible. In that case, the user must have at least the following rights:

1. Full access (read/write permissions) to registry keys under:

HKEY_CURRENT_USER\Software\Mercury Interactive
HKEY_LOCAL_MACHINE\Software\Mercury Interactive
HKEY_LOCAL_MACHINE\Software\Microsoft\Jet\4.0\engines\text
HKEY_LOCAL_MACHINE\Software\Microsoft\Tracing
HKEY_LOCAL_MACHINE\System\CurrentControlSet\Control\WMI

2. Full access (read/write permissions) to the file system to be able to copy files.

If there is any problem either with agent start up or connection from Controller to the agent on a Windows 2000 machine with a power user, try the following:
1. Open the Local Security Settings window through Start -> Programs -> Administrative Tools -> Local Security Policy.
2. Select Security Settings -> Local Policies -> User Rights Assignments.
3. Add the user to the "Create global objects" policy.

How to create a unique results folder for each scenario execution

How to create a unique results folder for each scenario execution

Creating a unique results folder for each scenario execution

To specify where results are stored:

1. Go to Results -> Results Settings. The Set Results Directory dialog box will open.

2. In the Results Name box, enter a name for the results.

3. In the Directory box, type the full path of the results directory.

4. Select the "Automatically create a results directory for each scenario execution" checkbox.

5. Click <OK> to save the results directory setting.