Legal Information |
|
The following 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 and interoperable with other Data Communications Exchange (DCE) standards. RPCs are industry standard Interprocess Communication (IPC) mechanisms for client-server communications that are network independent and can work over a variety of network protocols. RPC uses IPC mechanisms to establish communications between the client and server to call program functions on a remote computer.
The complex programs that use this level of service require that there be a connection, or level of throughput, to adequately deliver this functionality. For example, when you are using Microsoft Exchange Server, a connection is needed to reliably maintain the flow of data.
RPC Error MessagesWhen you use RPC, you may receive any of the following error messages, which may or may not be caused by slow network connectivity:
There are many tools you can use to determine if an RPC error message is being caused by a slow network connection. If you receive an RPC error message, eliminate slow network connectivity as the possible cause. Use one 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 command prompt on the destination server. If Transmission Control Protocol/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 and sequencing, only test with a file that is at least 2 megabytes (MB) in size.
To copy a file across the network using Performance Monitor:
copy /b file.ext + file.ext + file.ext + file.ext destination.extNOTE: Use the binary (/b) switch when the source file is not text. This prevents CTRL+Z being read as an end-of-file character.
net use * /dat a command prompt, and then press ENTER.
Connection speed | Bytes per second (bps) |
128kbps | 16,384 |
512kbps | 65,536 |
1.544Mbps (T1) | 193,000 |
10Mbps (Ethernet) | 1,250,000 |
46.320Mbps (T3) | 5,790,000 |
Another way to test RPC communication between two computers is to use the Rpcping tool.
Other causes of RPC error messages may be third-party services or larger 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 following information is displayed:
Services.exe contains much of the RPC code, and one of its threads may 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: 62 Win32StartAddr:0x022a3ca1 LastErr:0x000003e5 State:Waiting 64 Win32StartAddr:0x022a4895 LastErr:0x00000000 State:Waiting 67 Win32StartAddr:0x76e03f90 LastErr:0x00000000 State:Waiting 4.0.1381.4 shp 0x02290000 services.exe 4.0.1381.4 shp 0x77f60000 ntdll.dll 4.0.1381.4 shp 0x77e10000 RPCRT4.dll Examination of the state, files, and dates may provide additional information.
You can use the Pmon.exe tool (included with the Windows NT Resource Kit) Task Manager to obtain information about Services.exe, such as memory and CPU consumption. The Pstat.exe tool, included with the Windows NT Resource Kit, displays thread states for Services.exe. The information in this article applies to
Search Knowledge Base | Feedback |