This article was previously published under Q177446
This article has been archived. It is offered "as is" and will no longer be updated.
This article describes how to test Microsoft Remote Procedure Call (RPC)performance, and how to troubleshoot RPC error messages.
RPC is compatible with the Open Software Foundation (OSF) design andinteroperable with other Data Communications Exchange (DCE) standards.RPCs are industry standard Interprocess Communication (IPC) mechanisms forclient-server communications that are network independent and can workover a variety of network protocols. RPC uses IPC mechanisms to establishcommunications between the client and server to call program functions ona remote computer. The complex programs that use this level of servicerequire that there be a connection, or level of throughput, to adequatelydeliver this functionality. For example, when you are using MicrosoftExchange Server, a connection is needed to reliably maintain the flow ofdata.
RPC Error Messages
When you use RPC, you may receive any of the following error messages,which may or may not be caused by slow network connectivity:
The RPC protocol sequence is not supported.
The RPC protocol sequence is invalid.
The RPC server is already listening.
The RPC server is not listening.
The RPC server is unavailable.
The RPC server is too busy to complete this operation.
A remote procedure call (RPC) protocol error occurred.
The transfer syntax is not supported by the RPC server.
The RPC protocol sequence was not found.
An internal error occurred in a remote procedure call (RPC).
The RPC server attempted an integer division by zero.
An addressing error occurred in the RPC server.
A floating-point operation at the RPC server caused a division by zero.
A floating-point underflow occurred at the RPC server.
A floating-point overflow occurred at the RPC server.
The list of RPC servers available for the binding of auto handles has been exhausted.
The error specified is not a valid Windows RPC error code.
Incompatible version of the RPC stub.
The RPC pipe object is invalid or corrupted.
An invalid operation was attempted on an RPC pipe object.
Unsupported RPC pipe version.
Invalid asynchronous RPC call handle for this operation.
The RPC pipe object has already been closed.
The RPC call completed before all pipes were processed.
No more data is available from the RPC pipe.
Troubleshooting RPC Performance and Error Messages
There are many tools you can use to determine if an RPC error message isbeing caused by a slow network connection. If you receive an RPC errormessage, eliminate slow network connectivity as the possible cause. Useone or more of the following methods to isolate the problem.
To resolve the problem of name resolution as a cause of the RPC error message, verify that you can use the NET VIEW command at a commandprompt on the destination server. If Transmission ControlProtocol/Internet Protocol (TCP/IP) is the protocol used between the client and server programs, you can use an Lmhosts file to eliminate Windows Internet Naming Service (WINS) as a possible contributor to the problem.
You can test basic RPC connectivity by using another RPC program.Windows NT Server includes several RPC programs. Event Viewer (Eventvwr.exe) and Registry Editor (Regedt32.exe) can have their focus set to any computer running Windows NT. Other programs such as User Manager (Usrmgr.exe) and Server Manager (Srvmgr.exe) set their focus on the Primary Domain Controller (PDC) by default. Use one of these programs as another test for RPC connectivity.
To test network connectivity, monitor the speed of a basic file copy across the network using Performance Monitor (Perfmon.exe). To give the test an adequate sampling time and to fully allow for segmenting andsequencing, only test with a file that is at least 2 megabytes (MB) in size. To copy a file across the network using Performance Monitor:
Locate a 2 MB or larger file. If you do not have a 2 MB file readily available, you can use the COPY command to create the file from anexisting file. To do so, type the following command at a command prompt, and then press ENTER:
NOTE: Use the binary (/b) switch when the source file is not text.This prevents CTRL+Z being read as an end-of-file character.
Start Performance Monitor on the client computer. Since Performance Monitor cannot distinguish between connections to differentcomputers for a file copy, you may want to disconnect all current network connections if other connections may influence the results. To disconnect all current network connections, type net use * /d at a command prompt, and then press ENTER.
Performance Monitor can monitor a file copy for the server orredirector object using the Bytes Transmitted/sec, Bytes Received/sec and Bytes Total/sec counters. To simplify the procedure, and to more accurately represent the flow of data in the RPC connection, copy a file from the server computer to the client computer that is running the RPC program. A 2-MB file needs to be located on the server computer.
In Performance Monitor on the client computer, followthese steps:
On the Edit menu, click Add To Chart.
In the Object box, click Redirector.
In the Counter box, click Bytes Received/sec, and then click Add.
At a command prompt, map a network drive letter to the servercomputer and then copy the file from the server computer to the client computer.
In Performance Monitor, observe the average, maximum, and minimum values. If you are testing with a 128-Kbps link, observe the average counter to verify that the copy process is running close to 75 percent of the 16,384 bytes per second theoretical limit (.75 x 16,384 = 12,288 bytes per second). This value should be higher for important functionality and may indicate the need for network expansion. As a gauge, measurements that approach 800,000 bytes per second (bps) are excellent. The following table lists conversions for kilobits per second (kpbs) and Kilobytes per second (KBps):
Bytes per second (bps)
With a certain line speed, such as 128K, you see less than the full 16,384 bps throughput based on utilization and other factors. These numbers are a theoretical maximum, and network overhead reduces them.
To further eliminate general network connectivity as the problem:
In Performance Manager on the client computer, click Add To Chart on the Edit menu.
In the Object box, click Redirector.
In the Counter box, click Bytes Transmitted/sec, and then click Add.
Copy the file back to the server computer, and monitor the rate at which the file is copied.
NOTE: Be certain that these tests between the client computer andserver computer are acceptable for the level of service desired. To perform additional tests using Performance Monitor, by reverse the direction of data flow between the client and server computer, select the appropriate counters.
Another way to test RPC communication between two computers is to use the Rpcping tool.For additional information about how to use the Rpcping tool, click the article number below to view the article in the Microsoft Knowledge Base:
167260 How to Use RPCPing to Test RPC Communication
Other causes of RPC error messages may be third-party services orlarger services running on the client or server computer. To determine if running services are causing the problem, stop all non-default services and test RPC performance using Event Viewer and Performance Monitor again.
Check the state of the RPC services on the client and server computer. To do so, type net start at a command prompt, and then press ENTER. For a domain controller, the followinginformation is displayed:
Remote Procedure Call (RPC) Locator Remote Procedure Call (RPC) Service
To further check the state of these services, use the Sc.exe toolincluded with the Microsoft Windows NT Resource Kit.For additional information about using the Sc.exe tool, click the article number below to view the article in the Microsoft Knowledge Base:
166819 Using Sc.exe and Netsvc.exe to Control Services Remotely
Services.exe contains much of the RPC code, and one of its threadsmay be in a hung state. Use the Dr. Watson tool (Drwtsn32.exe) to determine if an error message has been reported. Even if no error message has been reported, one of its threads may be hung. If this is the case, you may need to restart your computer.
You can use the Tlist.exe tool included with the Windows NT Resource Kit to obtain information similar to the following: